Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
shivanthzen committed Nov 17, 2024
1 parent 8b1189b commit 58d00f5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion prometheus/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ func (m *withExemplarsMetric) Write(pb *dto.Metric) error {
pb.Counter.Exemplar = m.exemplars[len(m.exemplars)-1]
case pb.Histogram != nil:
if *pb.Histogram.Schema > math.MinInt32 {
exemplars := m.exemplars
pb.Histogram.Exemplars = append(pb.Histogram.Exemplars, m.exemplars...)
}
for _, e := range m.exemplars {
Expand Down

0 comments on commit 58d00f5

Please sign in to comment.