Skip to content

Commit

Permalink
Merge pull request #970 from spiffyjr/master
Browse files Browse the repository at this point in the history
Fix extra trimspace on nillable Unmarshals
  • Loading branch information
vektah committed Jan 6, 2020
2 parents 56b8eef + 21e0e67 commit 0eef2fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegen/type.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
{{- end }}
{{- else if eq ($type.GO | ref) "map[string]interface{}" }}
return v.(map[string]interface{}), nil
{{- else if $type.IsMarshaler -}}
{{- else if $type.IsMarshaler }}
var res {{ $type.GO | ref }}
return res, res.UnmarshalGQL(v)
{{- else }}
Expand Down

0 comments on commit 0eef2fe

Please sign in to comment.