diff --git a/graphql/service.go b/graphql/service.go index f33e763058..4ca427658a 100644 --- a/graphql/service.go +++ b/graphql/service.go @@ -88,9 +88,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { } response := h.Schema.Exec(ctx, params.Query, params.OperationName, params.Variables) - if timer != nil { - timer.Stop() - } + timer.Stop() responded.Do(func() { responseJSON, err := json.Marshal(response) if err != nil {