Merge pull request #16182 from amcasey/MissingNullCheck

Add missing null check
This commit is contained in:
Andrew Casey
2017-06-02 10:37:56 -07:00
committed by GitHub

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)) {