Skip to content

Commit

Permalink
Remove unncessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
zix99 committed Sep 10, 2022
1 parent 4de5673 commit d210aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/aggregation/sorting/strings.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func ByName(a, b string) bool {
func ByNameSmart(a, b string) bool {
v0, err0 := strconv.ParseFloat(a, 64)
v1, err1 := strconv.ParseFloat(b, 64)
if err0 == nil && err1 == nil && v0 != v1 {
if err0 == nil && err1 == nil {
return v0 < v1
}
return a < b
Expand Down

0 comments on commit d210aae

Please sign in to comment.