Skip to content

Commit aeeb4bb

Browse files
committed
remove unnecessary return path
1 parent 8a550a5 commit aeeb4bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

expr/consolidations/consolidations.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,8 @@ func SummarizeValues(f string, values []float64, XFilesFactor float32) float64 {
164164
}
165165
}
166166
if total == 0 {
167-
return math.NaN()
167+
rv /= float64(total)
168168
}
169-
rv /= float64(total)
170169
case "max":
171170
rv = math.Inf(-1)
172171
for _, av := range values {

0 commit comments

Comments
 (0)