Skip to content

Commit fe32282

Browse files
Merge pull request #11347 from HerringtonDarkholme/remove-redundant
remove redundant type assertion
2 parents d34916a + efda30c commit fe32282

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
@@ -2223,9 +2223,9 @@ namespace ts {
22232223
if (currentFlow) {
22242224
node.flowNode = currentFlow;
22252225
}
2226-
checkStrictModeFunctionName(<FunctionExpression>node);
2227-
const bindingName = (<FunctionExpression>node).name ? (<FunctionExpression>node).name.text : "__function";
2228-
return bindAnonymousDeclaration(<FunctionExpression>node, SymbolFlags.Function, bindingName);
2226+
checkStrictModeFunctionName(node);
2227+
const bindingName = node.name ? node.name.text : "__function";
2228+
return bindAnonymousDeclaration(node, SymbolFlags.Function, bindingName);
22292229
}
22302230

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

0 commit comments

Comments
 (0)