Skip to content

Commit 4ff34cb

Browse files
committed
meh, just remove the check, it's easy to re-add if someone crashes
1 parent 837c3d5 commit 4ff34cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/compiler/visitorPublic.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ export function visitNode(
153153
return node;
154154
}
155155

156-
// TODO(jakebailey): remove this check?
157-
const visited = visitor ? visitor(node) : node;
156+
const visited = visitor(node);
158157

159158
let visitedNode: Node | undefined;
160159
if (visited === undefined) {

0 commit comments

Comments
 (0)