Skip to content

Commit 95b5a69

Browse files
committed
Guess 1: null check is missing; Guess 2: ternary does the appropriate check
1 parent 928da67 commit 95b5a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ namespace ts.server {
646646

647647
const added: string[] = [];
648648
const removed: string[] = [];
649-
const updated: string[] = arrayFrom(updatedFileNames.keys());
649+
const updated: string[] = updatedFileNames ? arrayFrom(updatedFileNames.keys()) : [];
650650

651651
forEachKey(currentFiles, id => {
652652
if (!lastReportedFileNames.has(id)) {

0 commit comments

Comments
 (0)