mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 11:24:29 -05:00
Fix top level logical assignment leak (#40536)
* Fix leaking top level logical assignment * Fix leaking top level logical assignment
This commit is contained in:
@@ -1069,7 +1069,6 @@ namespace ts {
|
||||
node = node.parent;
|
||||
}
|
||||
return !isStatementCondition(node) &&
|
||||
!isLogicalAssignmentExpression(node.parent) &&
|
||||
!isLogicalExpression(node.parent) &&
|
||||
!(isOptionalChain(node.parent) && node.parent.expression === node);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user