mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Make linter happy
Signed-off-by: Charles Korn <charles.korn@grafana.com>
This commit is contained in:
parent
f07b3ae67b
commit
0f4bc87b4f
|
@ -3000,11 +3000,12 @@ func (ev *evaluator) aggregation(e *parser.AggregateExpr, q float64, inputMatrix
|
||||||
annos.Add(annotations.NewMixedFloatsHistogramsAggWarning(e.Expr.PositionRange()))
|
annos.Add(annotations.NewMixedFloatsHistogramsAggWarning(e.Expr.PositionRange()))
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if aggr.abandonHistogram {
|
switch {
|
||||||
|
case aggr.abandonHistogram:
|
||||||
continue
|
continue
|
||||||
} else if aggr.hasHistogram {
|
case aggr.hasHistogram:
|
||||||
aggr.histogramValue.Compact(0)
|
aggr.histogramValue.Compact(0)
|
||||||
} else {
|
default:
|
||||||
aggr.floatValue += aggr.floatKahanC
|
aggr.floatValue += aggr.floatKahanC
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue