Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ananyasaxena committed Oct 17, 2020
1 parent e37359b commit 7dcded9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions codegen/testserver/ptr_to_slice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ func TestPtrToSlice(t *testing.T) {

c := client.New(handler.NewDefaultServer(NewExecutableSchema(Config{Resolvers: resolvers})))


resolvers.QueryResolver.PtrToSliceContainer = func(ctx context.Context) (wrappedStruct *PtrToSliceContainer, e error) {
ptrToSliceContainer := PtrToSliceContainer{
PtrToSlice: &[]string{"hello"},
}
return &ptrToSliceContainer, nil
}


t.Run("pointer to slice", func(t *testing.T) {
var resp struct {
PtrToSliceContainer struct {
Expand Down

0 comments on commit 7dcded9

Please sign in to comment.