Skip to content

Commit 435c99d

Browse files
committed
skip redundant undefined assignment
1 parent 723616f commit 435c99d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/compiler/parser.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,9 +1347,6 @@ namespace ts {
13471347
result = createDetachedDiagnostic(fileName, start, length, message, arg0);
13481348
parseDiagnostics.push(result);
13491349
}
1350-
else {
1351-
result = undefined;
1352-
}
13531350

13541351
// Mark that we've encountered an error. We'll set an appropriate bit on the next
13551352
// node we finish so that it can't be reused incrementally.

0 commit comments

Comments
 (0)