Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Zztrans committed Apr 4, 2024
1 parent 5f21624 commit bdbbfb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions judger/src/worker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ impl JudgeWorker {
}
Err(anyhow::anyhow!("Failed to new builder result: {:?}", e))
});
if new_builder_result.is_err() {
return new_builder_result.unwrap_err();
if let Err(result) = new_builder_result {
return result
}
let builder = new_builder_result.expect("builder creater error");
log::debug!("Builder created: {:?}", builder);
Expand Down

0 comments on commit bdbbfb8

Please sign in to comment.