Skip to content

Commit

Permalink
Simplify internal (for test) environment variable check
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Aug 31, 2024
1 parent 332ea3c commit ea1c687
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ fn main() {
if let Err(e) = try_main() {
error!("{e:#}");
}
if term::error()
|| term::warn() && env::var_os("CARGO_HACK_DENY_WARNINGS").unwrap_or_default() == "1"
{
if term::error() || term::warn() && env::var_os("CARGO_HACK_DENY_WARNINGS").is_some() {
std::process::exit(1)
}
}
Expand Down

0 comments on commit ea1c687

Please sign in to comment.