Skip to content

Commit a83137e

Browse files
committed
Simplify sortWrapper.Less
1 parent 0598e7b commit a83137e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ferret.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@ func (SW *sortWrapper) Less(i, j int) bool {
7676
pa++
7777
pb++
7878
}
79-
if pa == na {
80-
return true
81-
}
82-
return false
79+
return pa == na
8380
}
8481

8582
// Creates an inverted suffix from a dictionary of byte arrays, mapping data, and a string->[]byte converter

0 commit comments

Comments
 (0)