Remove unnecessary return when sorting array keys.
Since map keys must be unique, two equal arrays will never be compared, so this line of code will never be reached.
This commit is contained in:
parent
d1afd4f613
commit
2bab0bbc40
|
@ -368,7 +368,6 @@ func valueSortLess(a, b reflect.Value) bool {
|
|||
}
|
||||
return valueSortLess(av, bv)
|
||||
}
|
||||
return false
|
||||
}
|
||||
return a.String() < b.String()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue