Skip to content

Commit

Permalink
Ignore lints
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Jan 26, 2024
1 parent c8662bc commit 9a157cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/console/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ export const isOutputTty = safeConsoleSize() != null && isTerminal(Deno.stderr);
function isTerminal(pipe: { isTerminal?(): boolean; rid?: number }) {
if (typeof pipe.isTerminal === "function") {
return pipe.isTerminal();
} else if (pipe.rid != null && typeof Deno.isatty === "function") {
} else if (
pipe.rid != null &&
// deno-lint-ignore no-deprecated-deno-api
typeof Deno.isatty === "function"
) {
// deno-lint-ignore no-deprecated-deno-api
return Deno.isatty(pipe.rid);
} else {
throw new Error("Unsupported pipe.");
Expand Down

0 comments on commit 9a157cd

Please sign in to comment.