Skip to content

Commit

Permalink
clean up now unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
neelance committed Mar 22, 2017
1 parent e45f26d commit 42608a0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,7 @@ func (e *objectExec) execField(ctx context.Context, r *request, f *query.Field,
addResult(fieldAlias, introspectType(ctx, r, v.String(), f.SelSet))

default:
fe, ok := e.fields[fieldName]
if !ok {
panic(fmt.Errorf("%q has no field %q", e.name, fieldName)) // TODO proper error handling
}
fe := e.fields[fieldName]

span, spanCtx := opentracing.StartSpanFromContext(ctx, fmt.Sprintf("GraphQL field: %s.%s", fe.typeName, fe.field.Name))
defer span.Finish()
Expand Down

0 comments on commit 42608a0

Please sign in to comment.