Skip to content

Commit

Permalink
chore: lint and format
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwhitney committed Sep 18, 2024
1 parent e9908f4 commit 51e5f5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/logql/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 51e5f5e

Please sign in to comment.