Remove unnecessary sort

Signed-off-by: Xiaochao Dong (@damnever) <the.xcdong@gmail.com>
This commit is contained in:
Xiaochao Dong (@damnever) 2023-03-08 15:36:02 +08:00
parent c4da9cd92f
commit 36fc1158b5
1 changed files with 0 additions and 1 deletions

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