Skip to content

Commit

Permalink
chore(lint-error): remove unused stepCount in engine.go (#13709)
Browse files Browse the repository at this point in the history
Signed-off-by: Kaviraj Kanagaraj <[email protected]>
  • Loading branch information
kavirajk authored Jul 30, 2024
1 parent b558436 commit 94bd3a0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/logql/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"errors"
"flag"
"fmt"
"math"
"sort"
"strconv"
"strings"
Expand Down Expand Up @@ -444,11 +443,6 @@ func (q *query) JoinSampleVector(next bool, r StepResult, stepEvaluator StepEval
return vec, nil
}

stepCount := int(math.Ceil(float64(q.params.End().Sub(q.params.Start()).Nanoseconds()) / float64(q.params.Step().Nanoseconds())))
if stepCount <= 0 {
stepCount = 1
}

for next {
vec = r.SampleVector()
vectorsToSeries(vec, seriesIndex)
Expand Down

0 comments on commit 94bd3a0

Please sign in to comment.