Skip to content

Commit

Permalink
maybe fix NodeWalker.find_value()
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBuchanan314 committed Nov 17, 2024
1 parent 371b0b1 commit ff022fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/atmst/mst/node_walker.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def find_value(self, key: str) -> Optional[CID]:
while True:
while self.rpath < key:
self.right()
if not self.subtree:
if self.rpath == key or not self.subtree:
break
self.down()
if self.rpath != key:
Expand Down

0 comments on commit ff022fc

Please sign in to comment.