Merge pull request #12095 from damnever/unnecessary-sort

Remove unnecessary sort
This commit is contained in:
Julien Pivotto 2023-03-09 13:12:02 +01:00 committed by GitHub
commit 5583c77b3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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...)
}