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 4c0af72 commit ac7edab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions receiver/prometheusreceiver/metrics_receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1356,8 +1356,8 @@ func (s *labelAndValueSorter) Less(i, j int) bool {
}

func (s *labelAndValueSorter) Swap(i, j int) {
labels := s.m.MetricDescriptor.LabelKeys
labels[i], labels[j] = labels[j], labels[i]
keys := s.m.MetricDescriptor.LabelKeys
keys[i], keys[j] = keys[j], keys[i]
for _, t := range s.m.Timeseries {
values := t.LabelValues
values[i], values[j] = values[j], values[i]
Expand Down

0 comments on commit ac7edab

Please sign in to comment.