diff --git a/src/compiler/visitorPublic.ts b/src/compiler/visitorPublic.ts index 468b8278d1d25..67e9dc5965954 100644 --- a/src/compiler/visitorPublic.ts +++ b/src/compiler/visitorPublic.ts @@ -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) {