Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Maquet committed Nov 18, 2019
1 parent 5994608 commit fcfe595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegen/testserver/interfaces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func TestInterfaces(t *testing.T) {
Resolvers: resolvers,
Directives: DirectiveRoot{
MakeTypedNil: func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) {
var dog *Dog
var dog *Dog // return a typed nil, not just nil
return dog, nil
},
},
Expand Down

0 comments on commit fcfe595

Please sign in to comment.