Skip to content

Commit

Permalink
Minor fix to TopToBottomTraversalOrder
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Ananev <[email protected]>
  • Loading branch information
artemananiev committed Jul 31, 2024
1 parent 1821463 commit 02f65c9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ public long getNextInternalPathToSend() {

@Override
public long getNextLeafPathToSend() {
assert lastPath != Path.INVALID_PATH;
if (lastPath == Path.INVALID_PATH) {
return Path.INVALID_PATH;
}
long path = lastPath + 1;
long result = skipCleanPaths(path);
// Find the highest clean path and skip all paths in its sub-tree. Repeat
Expand Down

0 comments on commit 02f65c9

Please sign in to comment.