diff --git a/prometheus/histogram.go b/prometheus/histogram.go index 627286282..10b19e634 100644 --- a/prometheus/histogram.go +++ b/prometheus/histogram.go @@ -1659,8 +1659,7 @@ func (n *nativeExemplars) addExemplar(e *dto.Exemplar) { // When the number of exemplars exceeds the limit, remove one exemplar. var ( - // The index where to remove the old exemplar. - rIdx int + rIdx int // The index where to remove the old exemplar. ot = time.Now() // Oldest timestamp seen. otIdx = -1 // Index of the exemplar with the oldest timestamp.