Prevent codegen from doing empty type() when no struct is defined
This commit is contained in:
parent
031cc24a73
commit
c11a1a74d1
@ -10,6 +10,8 @@ import (
|
||||
)
|
||||
{/if}
|
||||
|
||||
|
||||
{if !empty($structs)}
|
||||
type ({foreach $structs as $struct}
|
||||
|
||||
{if strpos($name, "Literal") !== false}
|
||||
@ -28,6 +30,7 @@ type ({foreach $structs as $struct}
|
||||
|
||||
{/if}{/foreach}
|
||||
)
|
||||
{/if}
|
||||
|
||||
{foreach $structs as $struct}
|
||||
// New constructs a new instance of {struct.name}
|
||||
|
||||
@ -14,5 +14,3 @@ package types
|
||||
implement your API calls, helper functions and tests. The file `auth.go`
|
||||
is only generated the first time, and will not be overwritten if it exists.
|
||||
*/
|
||||
|
||||
type ()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user