Make linter happy

Signed-off-by: Charles Korn <charles.korn@grafana.com>
pull/14611/head
Charles Korn 4 months ago
parent f07b3ae67b
commit 0f4bc87b4f
No known key found for this signature in database

@ -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…
Cancel
Save