Skip to content

Commit

Permalink
Update pkg/trie/triedb/nibbles/leftnibbles.go
Browse files Browse the repository at this point in the history
Co-authored-by: Haiko Schol <[email protected]>
  • Loading branch information
timwu20 and haikoschol authored Oct 11, 2024
1 parent ae02eb1 commit 6707bee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/trie/triedb/nibbles/leftnibbles.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ func (ln LeftNibbles) compare(other LeftNibbles) int {
for i := commonByteLen * NibblesPerByte; i < commonLen; i++ {
a := *ln.At(i)
b := *other.At(i)
switch c := cmp.Compare(a, b); c {
case 0:
default:
if c := cmp.Compare(a, b); c != 0 {
return c
}
}
Expand Down

0 comments on commit 6707bee

Please sign in to comment.