Merge pull request #11710 from Microsoft/concat

Use single `concat` call instead of repeated calls
This commit is contained in:
Andy authored and GitHub committed 2016-10-18 13:50:36 -07:00
commit 12e7faba24
1 file changed
+1 -1
+1 -1
View File
@@ -766,7 +766,7 @@ namespace ts {
const fileProcessingDiagnosticsInFile = fileProcessingDiagnostics.getDiagnostics(sourceFile.fileName);
const programDiagnosticsInFile = programDiagnostics.getDiagnostics(sourceFile.fileName);
return bindDiagnostics.concat(checkDiagnostics).concat(fileProcessingDiagnosticsInFile).concat(programDiagnosticsInFile);
return bindDiagnostics.concat(checkDiagnostics, fileProcessingDiagnosticsInFile, programDiagnosticsInFile);
});
}