chore(cli): remove atty crate (#20275)

Removes a crate with an outstanding vulnerability.
This commit is contained in:
Matt Mastracci 2023-08-25 07:43:07 -06:00 committed by GitHub
parent 9e31f9452e
commit c272d26ae8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 37 additions and 39 deletions

View file

@ -9,6 +9,7 @@ use deno_runtime::deno_webstorage::rusqlite::Connection;
use deno_runtime::deno_webstorage::rusqlite::OptionalExtension;
use deno_runtime::deno_webstorage::rusqlite::Params;
use once_cell::sync::OnceCell;
use std::io::IsTerminal;
use std::path::PathBuf;
use std::sync::Arc;
@ -261,7 +262,7 @@ impl CacheDB {
};
// Failed, try deleting it
let is_tty = atty::is(atty::Stream::Stderr);
let is_tty = std::io::stderr().is_terminal();
log::log!(
if is_tty { log::Level::Warn } else { log::Level::Trace },
"Could not initialize cache database '{}', deleting and retrying... ({err:?})",