Skip to content

Commit 12e7fab

Browse files
author
Andy
authored
Merge pull request #11710 from Microsoft/concat
Use single `concat` call instead of repeated calls
2 parents f08cfda + 64e8221 commit 12e7fab

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)