From 383c2aa6c01632d5b38e900f8595674c8b71fe64 Mon Sep 17 00:00:00 2001 From: devopsbo3 <69951731+devopsbo3@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:27:53 -0600 Subject: [PATCH] Revert "graphql: fix nil deref on a timer (#27978)" This reverts commit 8c74940ebfc9cf3b42bb1080e8912d1199637bf0. --- graphql/service.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 {