Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
neelance committed Oct 21, 2016
1 parent 7b8cd1b commit e6b6fbc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/exec/introspection.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func introspectType(r *request, name string, selSet *query.SelectionSet) interfa
if !ok {
return nil
}
return typeExec.exec(r, selSet, reflect.ValueOf(&typeResolver{typ: t}))
return typeExec.exec(r, selSet, reflect.ValueOf(&typeResolver{t}))
}

var metaSchemaSrc = `
Expand Down Expand Up @@ -225,23 +225,23 @@ func (r *schemaResolver) QueryType() *typeResolver {
if !ok {
return nil
}
return &typeResolver{typ: t}
return &typeResolver{t}
}

func (r *schemaResolver) MutationType() *typeResolver {
t, ok := r.schema.Types[r.schema.EntryPoints["mutation"]]
if !ok {
return nil
}
return &typeResolver{typ: t}
return &typeResolver{t}
}

func (r *schemaResolver) SubscriptionType() *typeResolver {
t, ok := r.schema.Types[r.schema.EntryPoints["subscription"]]
if !ok {
return nil
}
return &typeResolver{typ: t}
return &typeResolver{t}
}

func (r *schemaResolver) Directives() []*directiveResolver {
Expand Down Expand Up @@ -408,7 +408,7 @@ func (r *fieldResolver) Args() []*inputValueResolver {
}

func (r *fieldResolver) Type() *typeResolver {
return &typeResolver{typ: r.field.Type}
return &typeResolver{r.field.Type}
}

func (r *fieldResolver) IsDeprecated() bool {
Expand Down

0 comments on commit e6b6fbc

Please sign in to comment.