Skip to content

Commit 02d3564

Browse files
committed
Safe a line or so
1 parent d0049b2 commit 02d3564

File tree

1 file changed

+1
-5
lines changed
  • rust/krb5-provision-keytab/src

1 file changed

+1
-5
lines changed

rust/krb5-provision-keytab/src/main.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,5 @@ async fn main() {
193193
let res = run().await.map_err(|err| Report::from(err).to_string());
194194
println!("{}", serde_json::to_string_pretty(&res).unwrap());
195195

196-
if res.is_ok() {
197-
std::process::exit(0);
198-
} else {
199-
std::process::exit(1);
200-
}
196+
std::process::exit(if res.is_ok() { 0 } else { 1 });
201197
}

0 commit comments

Comments
 (0)