Skip to content

Commit

Permalink
Ensure visit returns a result.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcafstockf committed Nov 21, 2022
1 parent 01a7f29 commit 1140e6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/visit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export function visit<T extends Node, P extends Parent>(tree: T | T[], tst: Test

// Begin
if (Array.isArray(tree))
all(tree, []);
return all(tree, []);
else
one(tree, null, []);
return one(tree, null, []);
}

0 comments on commit 1140e6c

Please sign in to comment.