mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 00:53:12 +00:00
Merge pull request #12095 from damnever/unnecessary-sort
Remove unnecessary sort
This commit is contained in:
commit
5583c77b3a
@ -411,7 +411,6 @@ func FromStrings(ss ...string) Labels {
|
||||
ls = append(ls, Label{Name: ss[i], Value: ss[i+1]})
|
||||
}
|
||||
|
||||
slices.SortFunc(ls, func(a, b Label) bool { return a.Name < b.Name })
|
||||
return New(ls...)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user