Guess 1: null check is missing; Guess 2: ternary does the appropriate check

This commit is contained in:
Andrew Casey
2017-05-25 14:00:11 -07:00
parent 928da675ac
commit 95b5a691d4

View File

@@ -646,7 +646,7 @@ namespace ts.server {
const added: string[] = [];
const removed: string[] = [];
const updated: string[] = arrayFrom(updatedFileNames.keys());
const updated: string[] = updatedFileNames ? arrayFrom(updatedFileNames.keys()) : [];
forEachKey(currentFiles, id => {
if (!lastReportedFileNames.has(id)) {