Skip to content

Commit

Permalink
golanglintci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TwFlem committed Dec 12, 2023
1 parent a520093 commit f6c2bb9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bwt/bwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,16 +397,15 @@ func sortPrefixArray(prefixArray []string) {
if a[i] == b[i] {
continue
}
if a[i] == byte(nullChar[0]) {
if a[i] == nullChar[0] {
return true
}
if b[i] == byte(nullChar[0]) {
if b[i] == nullChar[0] {
return false
}
return a[i] < b[i]
}

return len(a) < len(b)
})

}

0 comments on commit f6c2bb9

Please sign in to comment.