Skip to content

Commit

Permalink
ci: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yf0μl committed Dec 4, 2024
1 parent 2878f94 commit f4f769e
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,12 @@ pub mod rule {
}

fn get_docker_image() -> String {
std::env::var(cargo_near_build::env_keys::nep330::BUILD_ENVIRONMENT).expect(&format!(
"`{}` is set",
cargo_near_build::env_keys::nep330::BUILD_ENVIRONMENT
))
std::env::var(cargo_near_build::env_keys::nep330::BUILD_ENVIRONMENT).unwrap_or_else(|_| {
panic!(
"`{}` is expected to be set",
cargo_near_build::env_keys::nep330::BUILD_ENVIRONMENT
)
})
}
pub fn enforce_this_program_args() -> color_eyre::eyre::Result<()> {
if is_inside_docker_context() {
Expand Down

0 comments on commit f4f769e

Please sign in to comment.