Skip to content

Commit

Permalink
remove unnecessary return path
Browse files Browse the repository at this point in the history
  • Loading branch information
spacefreak86 committed Nov 30, 2024
1 parent 8a550a5 commit aeeb4bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions expr/consolidations/consolidations.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,8 @@ func SummarizeValues(f string, values []float64, XFilesFactor float32) float64 {
}
}
if total == 0 {
return math.NaN()
rv /= float64(total)
}
rv /= float64(total)
case "max":
rv = math.Inf(-1)
for _, av := range values {
Expand Down

0 comments on commit aeeb4bb

Please sign in to comment.