Skip to content

Commit

Permalink
meh, just remove the check, it's easy to re-add if someone crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Jan 13, 2023
1 parent 837c3d5 commit 4ff34cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/compiler/visitorPublic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ export function visitNode(
return node;
}

// TODO(jakebailey): remove this check?
const visited = visitor ? visitor(node) : node;
const visited = visitor(node);

let visitedNode: Node | undefined;
if (visited === undefined) {
Expand Down

0 comments on commit 4ff34cb

Please sign in to comment.