Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelightning committed Jun 13, 2024
1 parent 06092eb commit e034ee1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ func getTreeKey(key []byte) []byte {
}

func getKey(key []byte) []byte {
if len(key) == 0 {
return key
}
return key[:len(key)-1]
}

Expand Down

0 comments on commit e034ee1

Please sign in to comment.