Skip to content

Commit

Permalink
feat(smt): allow ChildNodes to use 0 as entry marker (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
signorecello authored Dec 2, 2024
1 parent c6f1efe commit aa76d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/smt/src/smt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export default class SMT {

// If the third position of the array is not empty the child nodes
// are an entry of the tree.
if (childNodes[2]) {
if (childNodes[2] !== undefined) {
if (childNodes[0] === key) {
// An entry with the same key was found and
// it returns it with the siblings.
Expand Down

0 comments on commit aa76d57

Please sign in to comment.