Merge pull request #11710 from Microsoft/concat

Use single `concat` call instead of repeated calls
This commit is contained in:
Andy 2016-10-18 13:50:36 -07:00 committed by GitHub
commit 12e7faba24

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);
});
}