Skip to content

Commit 4ec9209

Browse files
committed
Take a few changes.
1 parent 056662d commit 4ec9209

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/compiler/tsc.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ namespace ts {
667667
}
668668

669669
function printHelp() {
670-
const output: any = [];
670+
const output: string[] = [];
671671

672672
// We want to align our "syntax" and "examples" commands to a certain margin.
673673
const syntaxLength = getDiagnosticText(Diagnostics.Syntax_Colon_0, "").length;
@@ -765,9 +765,10 @@ namespace ts {
765765
output.push(sys.newLine);
766766
}
767767
}
768-
output.forEach(function (val: any) {
769-
sys.write(val);
770-
});
768+
769+
for (const line of output) {
770+
sys.write(line);
771+
}
771772
return;
772773

773774
function getParamType(option: CommandLineOption) {

0 commit comments

Comments
 (0)