Skip to content

Commit

Permalink
Merge pull request #995 from alexsn/directiveroot_empty_lines
Browse files Browse the repository at this point in the history
Remove empty lines on DirectiveRoot generation
  • Loading branch information
vvakame authored Jan 21, 2020
2 parents a6c7aaf + 30c295c commit 61e060b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 33 deletions.
2 changes: 1 addition & 1 deletion codegen/generated!.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type ResolverRoot interface {

type DirectiveRoot struct {
{{ range $directive := .Directives }}
{{ $directive.Declaration }}
{{- $directive.Declaration }}
{{ end }}
}

Expand Down
27 changes: 9 additions & 18 deletions codegen/testserver/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions example/todo/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 6 additions & 12 deletions example/type-system-extension/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 61e060b

Please sign in to comment.