Skip to content

Commit

Permalink
Merge pull request microsoft#11347 from HerringtonDarkholme/remove-re…
Browse files Browse the repository at this point in the history
…dundant

remove redundant type assertion
  • Loading branch information
RyanCavanaugh authored Oct 10, 2016
2 parents d34916a + efda30c commit fe32282
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compiler/binder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2223,9 +2223,9 @@ namespace ts {
if (currentFlow) {
node.flowNode = currentFlow;
}
checkStrictModeFunctionName(<FunctionExpression>node);
const bindingName = (<FunctionExpression>node).name ? (<FunctionExpression>node).name.text : "__function";
return bindAnonymousDeclaration(<FunctionExpression>node, SymbolFlags.Function, bindingName);
checkStrictModeFunctionName(node);
const bindingName = node.name ? node.name.text : "__function";
return bindAnonymousDeclaration(node, SymbolFlags.Function, bindingName);
}

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

0 comments on commit fe32282

Please sign in to comment.