Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rakyll committed Apr 20, 2021
1 parent fa26478 commit 4c0af72
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions receiver/prometheusreceiver/metrics_receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1356,12 +1356,10 @@ func (s *labelAndValueSorter) Less(i, j int) bool {
}

func (s *labelAndValueSorter) Swap(i, j int) {
tmp := s.m.MetricDescriptor.LabelKeys[i]
s.m.MetricDescriptor.LabelKeys[i] = s.m.MetricDescriptor.LabelKeys[j]
s.m.MetricDescriptor.LabelKeys[j] = tmp

labels := s.m.MetricDescriptor.LabelKeys
labels[i], labels[j] = labels[j], labels[i]
for _, t := range s.m.Timeseries {
labels := t.LabelValues
labels[i], labels[j] = labels[j], labels[i]
values := t.LabelValues
values[i], values[j] = values[j], values[i]
}
}

0 comments on commit 4c0af72

Please sign in to comment.