Skip to content

Commit

Permalink
entgql: fix duplicate import present in gql_where_input.go (#452)
Browse files Browse the repository at this point in the history
* remove empty template to exclude spaces

* add back 'import/types' and reorder imports
  • Loading branch information
Adam-Mustafa authored Mar 11, 2023
1 parent c77147d commit 327f05c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entgql/template/where_input.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ in the LICENSE file in the root directory of this source tree.
{{ template "header" . }}
{{- end }}

{{ template "import" $ }}

{{ $gqlNodes := filterNodes $.Nodes (skipMode "where_input") }}

import (
"{{ $.Config.Package }}/predicate"
{{- range $n := $gqlNodes }}
{{ template "import/types" $n }}
{{- template "import/types" $n }}
"{{ $.Config.Package }}/{{ $n.Package }}"
{{- end }}
)
{{ template "import" $ }}

{{ range $n := $gqlNodes }}
{{ $comparableFields := list $n.ID }}
Expand Down

0 comments on commit 327f05c

Please sign in to comment.