Skip to content

Commit a92d315

Browse files
author
Andy
authored
Remove unnecessary cast (#18822)
1 parent 9b77dd6 commit a92d315

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/compiler/utilities.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,11 +1401,10 @@ namespace ts {
14011401

14021402
/// Given a BinaryExpression, returns SpecialPropertyAssignmentKind for the various kinds of property
14031403
/// assignments we treat as special in the binder
1404-
export function getSpecialPropertyAssignmentKind(expression: ts.BinaryExpression): SpecialPropertyAssignmentKind {
1405-
if (!isInJavaScriptFile(expression)) {
1404+
export function getSpecialPropertyAssignmentKind(expr: ts.BinaryExpression): SpecialPropertyAssignmentKind {
1405+
if (!isInJavaScriptFile(expr)) {
14061406
return SpecialPropertyAssignmentKind.None;
14071407
}
1408-
const expr = <BinaryExpression>expression;
14091408
if (expr.operatorToken.kind !== SyntaxKind.EqualsToken || expr.left.kind !== SyntaxKind.PropertyAccessExpression) {
14101409
return SpecialPropertyAssignmentKind.None;
14111410
}

0 commit comments

Comments
 (0)