Use sort.Strings

This commit is contained in:
Peter Rifel 2025-08-22 20:18:27 -05:00
parent ec67c4acdc
commit 9d41b64f2e
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -101,8 +101,8 @@ func TestTaintsApplied(t *testing.T) {
} }
func stringSlicesEqual(exp, other []string) bool { func stringSlicesEqual(exp, other []string) bool {
sort.Sort(sort.StringSlice(exp)) sort.Strings(exp)
sort.Sort(sort.StringSlice(other)) sort.Strings(other)
if exp == nil && other != nil { if exp == nil && other != nil {
return false return false
} }