From 51e5f5eae4119b8ae18a8347c644638bcb9b6cd1 Mon Sep 17 00:00:00 2001 From: Trevor Whitney Date: Wed, 18 Sep 2024 14:27:47 -0600 Subject: [PATCH] chore: lint and format --- pkg/logql/engine.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/logql/engine.go b/pkg/logql/engine.go index 46584d2735670..8e29a0e042948 100644 --- a/pkg/logql/engine.go +++ b/pkg/logql/engine.go @@ -265,10 +265,10 @@ func (q *query) Exec(ctx context.Context) (logqlmodel.Result, error) { statResult := statsCtx.Result(time.Since(start), queueTime, q.resultLength(data)) sp.LogKV(statResult.KVList()...) - status := http.StatusOK - if err != nil { - status, _ = server.ClientHTTPStatusAndError(err) - } + status := http.StatusOK + if err != nil { + status, _ = server.ClientHTTPStatusAndError(err) + } if q.record { RecordRangeAndInstantQueryMetrics(ctx, q.logger, q.params, strconv.Itoa(status), statResult, data)