Skip to content

Commit ec54884

Browse files
committed
fix cast
1 parent 1351cb3 commit ec54884

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44416,8 +44416,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4441644416
visitConditionalReturnExpression(node.whenTrue);
4441744417
visitConditionalReturnExpression(node.whenFalse);
4441844418
}
44419-
else if ((node as HasFlowNode).flowNode) {
44420-
flowNodes.push((node as HasFlowNode).flowNode);
44419+
else if (node.flowNode) {
44420+
flowNodes.push(node.flowNode);
4442144421
}
4442244422
}
4442344423
}

0 commit comments

Comments
 (0)