From 0e10fc76b8142a3fa1e7caf33d1ac9b25714ed80 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 22 Jul 2014 17:08:12 -0700 Subject: [PATCH] Removed parentheses around arrow function parameters. As per feedback in pull request #147. --- src/compiler/checker.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 0de0cb799d2..6a112ec06e2 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -4038,7 +4038,7 @@ module ts { function checkAndAggregateReturnExpressionTypes(body: Block, contextualType?: Type, contextualMapper?: TypeMapper): Type[] { var aggregatedTypes: Type[] = []; - forEachReturnStatement(body, (returnStatement) => { + forEachReturnStatement(body, returnStatement => { var expr = returnStatement.expression; if (expr) { var type = checkAndMarkExpression(expr, contextualType, contextualMapper); @@ -4052,7 +4052,7 @@ module ts { } function bodyContainsAReturnStatement(funcBody: Block) { - return forEachReturnStatement(funcBody, (returnStatement) => { + return forEachReturnStatement(funcBody, returnStatement => { return true; }); } @@ -5343,7 +5343,7 @@ module ts { // for interfaces property and indexer might be inherited from different bases // check if any base class already has both property and indexer. // check should be performed only if 'type' is the first type that brings property\indexer together - var someBaseClassHasBothPropertyAndIndexer = forEach((type).baseTypes, (base) => getPropertyOfType(base, prop.name) && getIndexTypeOfType(base, indexKind)); + var someBaseClassHasBothPropertyAndIndexer = forEach((type).baseTypes, base => getPropertyOfType(base, prop.name) && getIndexTypeOfType(base, indexKind)); errorNode = someBaseClassHasBothPropertyAndIndexer ? undefined : type.symbol.declarations[0]; }