Skip to content

Commit c4394ae

Browse files
committed
Minor code clean up
- removed commented out unused variables
1 parent ee2f8c6 commit c4394ae

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

executor.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ type ExecutionContext struct {
8282

8383
func buildExecutionContext(p BuildExecutionCtxParams) (*ExecutionContext, error) {
8484
eCtx := &ExecutionContext{}
85-
// operations := map[string]ast.Definition{}
8685
var operation *ast.OperationDefinition
8786
fragments := map[string]ast.Definition{}
8887

union_interface_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,6 @@ func TestUnionIntersectionTypes_AllowsFragmentConditionsToBeAbstractTypes(t *tes
497497
}
498498
func TestUnionIntersectionTypes_GetsExecutionInfoInResolver(t *testing.T) {
499499

500-
//var encounteredSchema *graphql.Schema
501-
//var encounteredRootValue interface{}
502-
503500
var personType2 *graphql.Object
504501

505502
namedType2 := graphql.NewInterface(graphql.InterfaceConfig{
@@ -510,8 +507,6 @@ func TestUnionIntersectionTypes_GetsExecutionInfoInResolver(t *testing.T) {
510507
},
511508
},
512509
ResolveType: func(value interface{}, info graphql.ResolveInfo) *graphql.Object {
513-
//encounteredSchema = &info.Schema
514-
//encounteredRootValue = info.RootValue
515510
return personType2
516511
},
517512
})

0 commit comments

Comments
 (0)