Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ynqa committed Mar 20, 2024
1 parent 5aafea2 commit 8aabb46
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions j9-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,22 @@ use std::{
};

fn check_installed(name: &str) -> anyhow::Result<()> {
let check = Command::new(name)
.arg("--version")
.output();
let check = Command::new(name).arg("--version").output();

match check {
Ok(output) => {
if !output.status.success() {
return Err(anyhow::anyhow!("{} is required, but it's not installed or not in PATH.", name));
return Err(anyhow::anyhow!(
"{} is required, but it's not installed or not in PATH.",
name
));
}
},
}
Err(_) => {
return Err(anyhow::anyhow!("{} is required, but it's not installed or not in PATH.", name));
return Err(anyhow::anyhow!(
"{} is required, but it's not installed or not in PATH.",
name
));
}
}

Expand Down

0 comments on commit 8aabb46

Please sign in to comment.