Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
neelance committed Mar 24, 2017
1 parent 84baade commit ee95710
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,6 @@ func (e *objectExec) execField(ctx context.Context, r *request, f *query.Field,
in = append(in, packed)
}

m := resolver.Method(fe.methodIndex)
do := func(applyLimiter bool) interface{} {
if applyLimiter {
r.limiter <- struct{}{}
Expand All @@ -597,7 +596,7 @@ func (e *objectExec) execField(ctx context.Context, r *request, f *query.Field,
return // don't execute any more resolvers if context got cancelled
}

out := m.Call(in)
out := resolver.Method(fe.methodIndex).Call(in)
result = out[0]
if fe.hasError && !out[1].IsNil() {
resolverErr := out[1].Interface().(error)
Expand Down

0 comments on commit ee95710

Please sign in to comment.