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 83594a7 commit ae02eb1
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 @@ -81,9 +81,7 @@ func (ln LeftNibbles) compare(other LeftNibbles) int {

// Quickly compare the common prefix of the byte slices.
c := bytes.Compare(ln.bytes[:commonByteLen], other.bytes[:commonByteLen])
switch c {
case 0:
default:
if c != 0 {
return c
}

Expand Down

0 comments on commit ae02eb1

Please sign in to comment.