Skip to content

Commit ee85178

Browse files
committed
Remove dead code that didn't get removed in #19979
1 parent 0bda420 commit ee85178

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/compiler/parser.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3409,8 +3409,7 @@ namespace ts {
34093409
// - "a ? (b): c" will have "(b):" parsed as a signature with a return type annotation.
34103410
//
34113411
// So we need just a bit of lookahead to ensure that it can only be a signature.
3412-
if (!allowAmbiguity && ((token() !== SyntaxKind.EqualsGreaterThanToken && token() !== SyntaxKind.OpenBraceToken) ||
3413-
find(node.parameters, p => p.initializer && ts.isIdentifier(p.initializer) && p.initializer.escapedText === "= not found"))) {
3412+
if (!allowAmbiguity && token() !== SyntaxKind.EqualsGreaterThanToken && token() !== SyntaxKind.OpenBraceToken) {
34143413
// Returning undefined here will cause our caller to rewind to where we started from.
34153414
return undefined;
34163415
}

0 commit comments

Comments
 (0)