Skip to content

Commit

Permalink
trie: fix nil return
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe committed May 7, 2024
1 parent 16a5a4a commit 5304dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trie/trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func (t *Trie) getBatch(origNode node, keys [][]byte, pos int) ([][]byte, node,
}
}
if first == len(keys) {
return make([][]byte, len(keys)), nil, false, nil
return make([][]byte, len(keys)), n, false, nil
}
// Find the item that is the first not following the short node
last := len(keys)
Expand Down

0 comments on commit 5304dbe

Please sign in to comment.