Skip to content

Commit e700022

Browse files
author
Benjamin Lichtman
committed
Remove unnecessary case
1 parent d12110d commit e700022

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/services/codefixes/convertToAsyncFunction.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -520,10 +520,6 @@ namespace ts.codefix {
520520
name = getMapEntryIfExists(param);
521521
}
522522
}
523-
// currently not relevant, since we don't produce a valid transformation if the argument to a promise operation is a CallExpression
524-
else if (isCallExpression(funcNode) && funcNode.arguments.length > 0 && isIdentifier(funcNode.arguments[0])) {
525-
name = { identifier: funcNode.arguments[0] as Identifier, types, numberOfAssignmentsOriginal };
526-
}
527523
else if (isIdentifier(funcNode)) {
528524
name = getMapEntryIfExists(funcNode);
529525
}

0 commit comments

Comments
 (0)