Skip to content

Commit efda30c

Browse files
remove redundant type assertion
1 parent a0fc905 commit efda30c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/binder.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2207,9 +2207,9 @@ namespace ts {
22072207
if (currentFlow) {
22082208
node.flowNode = currentFlow;
22092209
}
2210-
checkStrictModeFunctionName(<FunctionExpression>node);
2211-
const bindingName = (<FunctionExpression>node).name ? (<FunctionExpression>node).name.text : "__function";
2212-
return bindAnonymousDeclaration(<FunctionExpression>node, SymbolFlags.Function, bindingName);
2210+
checkStrictModeFunctionName(node);
2211+
const bindingName = node.name ? node.name.text : "__function";
2212+
return bindAnonymousDeclaration(node, SymbolFlags.Function, bindingName);
22132213
}
22142214

22152215
function bindPropertyOrMethodOrAccessor(node: Declaration, symbolFlags: SymbolFlags, symbolExcludes: SymbolFlags) {

0 commit comments

Comments
 (0)