From 10f4ccde2a5fd79d8cd0fd66d79ceed19dbcd2de Mon Sep 17 00:00:00 2001 From: Andrii Zavorotnii Date: Mon, 14 Jan 2019 10:37:59 -0800 Subject: [PATCH] newRequestContext: remove redundant else part --- handler/graphql.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/handler/graphql.go b/handler/graphql.go index b27e967a3c9..918671a9a22 100644 --- a/handler/graphql.go +++ b/handler/graphql.go @@ -58,8 +58,6 @@ func (c *Config) newRequestContext(es graphql.ExecutableSchema, doc *ast.QueryDo if hook := c.tracer; hook != nil { reqCtx.Tracer = hook - } else { - reqCtx.Tracer = &graphql.NopTracer{} } if c.complexityLimit > 0 {