Skip to content

Commit

Permalink
remove more unneeded whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Scarr committed Mar 19, 2018
1 parent 8aecc84 commit 3acfbe3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions codegen/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (t Type) unmarshal(result, raw string, remainingMods []string, depth int) s
return tpl(`{{.rawSlice}} := {{.raw}}.([]interface{})
{{.result}} = make({{.type}}, len({{.rawSlice}}))
for {{.index}} := range {{.rawSlice}} {
{{ .next }}
{{ .next -}}
}`, map[string]interface{}{
"raw": raw,
"rawSlice": rawIf,
Expand All @@ -128,7 +128,7 @@ func (t Type) unmarshal(result, raw string, remainingMods []string, depth int) s
{{ end }}
{{- if .t.Marshaler }}
{{- .result }}, err = {{ .t.Marshaler.PkgDot }}Unmarshal{{.t.Marshaler.GoType}}({{.raw}})
{{- else }}
{{- else -}}
err = (&{{.result}}).UnmarshalGQL({{.raw}})
{{- end }}
{{- if .t.CastType }}
Expand Down
1 change: 0 additions & 1 deletion example/scalars/generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,6 @@ func UnmarshalSearchArgs(v interface{}) (SearchArgs, error) {
var err error
var ptr1 Point
if v != nil {

err = (&ptr1).UnmarshalGQL(v)
it.Location = &ptr1
}
Expand Down
1 change: 0 additions & 1 deletion test/generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,6 @@ func UnmarshalRecursiveInputSlice(v interface{}) (RecursiveInputSlice, error) {
ptr3, err = UnmarshalRecursiveInputSlice(rawIf2[idx2])
ptr1[idx2] = &ptr3
}

}
it.Self = &ptr1
}
Expand Down

0 comments on commit 3acfbe3

Please sign in to comment.