mirror of https://github.com/kubernetes/kops.git
Use sort.Strings
This commit is contained in:
parent
ec67c4acdc
commit
9d41b64f2e
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue