Skip to content

Commit 29ff745

Browse files
Address CR feedback.
1 parent 6953fa1 commit 29ff745

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/compiler/sys.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ namespace ts {
428428
newLine: string;
429429
useCaseSensitiveFileNames: boolean;
430430
write(s: string): void;
431-
writeOutputIsTty?(): boolean;
431+
writeOutputIsTTY?(): boolean;
432432
readFile(path: string, encoding?: string): string | undefined;
433433
getFileSize?(path: string): number;
434434
writeFile(path: string, data: string, writeByteOrderMark?: boolean): void;
@@ -562,7 +562,7 @@ namespace ts {
562562
write(s: string): void {
563563
process.stdout.write(s);
564564
},
565-
writeOutputIsTty() {
565+
writeOutputIsTTY() {
566566
return process.stdout.isTTY;
567567
},
568568
readFile,

src/compiler/tsc.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ namespace ts {
2525
}
2626

2727
function shouldBePretty(options: CompilerOptions) {
28-
if ((typeof options.pretty === "undefined")) {
29-
return !!sys.writeOutputIsTty && sys.writeOutputIsTty();
28+
if (typeof options.pretty === "undefined") {
29+
return !!sys.writeOutputIsTTY && sys.writeOutputIsTTY();
3030
}
3131
return options.pretty;
3232
}

0 commit comments

Comments
 (0)