Picking some nits that my IDE complained about (#91)

* Picking some nits that my IDE complained about

Signed-off-by: Steve Coffman <[email protected]>

* Update graphql/util.go

Co-authored-by: Ben Kraft <[email protected]>

* revert to original for comment

Signed-off-by: Steve Coffman <[email protected]>

Co-authored-by: Ben Kraft <[email protected]>
This commit is contained in:
Steve Coffman
2021-09-14 13:42:47 -04:00
committed by GitHub
co-authored by Ben Kraft
parent 639b46df32
commit 673840e495
8 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -90,7 +90,7 @@ func (g *generator) convertInputType(
options, queryOptions *genqlientDirective,
) (goType, error) {
// note prefix is ignored here (see generator.typeName), as is selectionSet
// (for input types we use the whole thing)).
// (for input types we use the whole thing).
return g.convertType(nil, typ, nil, options, queryOptions)
}
@@ -463,7 +463,7 @@ func (g *generator) convertInlineFragment(
containingTypedef *ast.Definition,
queryOptions *genqlientDirective,
) ([]*goStructField, error) {
// You might think fragmentTypedef would be fragment.ObjectDefinition, but
// You might think fragmentTypedef would be a fragment.ObjectDefinition, but
// actually that's the type into which the fragment is spread.
fragmentTypedef := g.schema.Types[fragment.TypeCondition]
if !fragmentMatches(containingTypedef, fragmentTypedef) {