Skip to content

Commit 64e8221

Browse files
author
Andy Hanson
committed
Use single concat call instead of repeated calls
1 parent 97e90b5 commit 64e8221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/program.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ namespace ts {
766766
const fileProcessingDiagnosticsInFile = fileProcessingDiagnostics.getDiagnostics(sourceFile.fileName);
767767
const programDiagnosticsInFile = programDiagnostics.getDiagnostics(sourceFile.fileName);
768768

769-
return bindDiagnostics.concat(checkDiagnostics).concat(fileProcessingDiagnosticsInFile).concat(programDiagnosticsInFile);
769+
return bindDiagnostics.concat(checkDiagnostics, fileProcessingDiagnosticsInFile, programDiagnosticsInFile);
770770
});
771771
}
772772

0 commit comments

Comments
 (0)