Remove unused variable

This commit is contained in:
Shivanth 2024-11-17 20:33:48 +01:00
parent 8b1189b8a7
commit 58d00f50d7
1 changed files with 0 additions and 1 deletions

View File

@ -187,7 +187,6 @@ func (m *withExemplarsMetric) Write(pb *dto.Metric) error {
pb.Counter.Exemplar = m.exemplars[len(m.exemplars)-1] pb.Counter.Exemplar = m.exemplars[len(m.exemplars)-1]
case pb.Histogram != nil: case pb.Histogram != nil:
if *pb.Histogram.Schema > math.MinInt32 { if *pb.Histogram.Schema > math.MinInt32 {
exemplars := m.exemplars
pb.Histogram.Exemplars = append(pb.Histogram.Exemplars, m.exemplars...) pb.Histogram.Exemplars = append(pb.Histogram.Exemplars, m.exemplars...)
} }
for _, e := range m.exemplars { for _, e := range m.exemplars {