Skip to content

Commit

Permalink
Remove redundant isNaN check
Browse files Browse the repository at this point in the history
  • Loading branch information
leizor committed Sep 12, 2022
1 parent 9faff07 commit 2f8c064
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions expr/consolidations/consolidations.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,7 @@ func AggDiff(v []float64) float64 {
}

for _, vv := range safeValues[1:] {
if !math.IsNaN(vv) {
res -= vv
}
res -= vv
}

return res
Expand Down

0 comments on commit 2f8c064

Please sign in to comment.