Skip to content

Commit

Permalink
chore(lint): Fix clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lquerel committed Jun 14, 2024
1 parent 357cc33 commit 611b237
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,7 @@ fn process_diagnostics(
cmd_result: CmdResult,
logger: impl Logger + Sync + Clone,
) -> ExitDirectives {
let diagnostic_args = if let Some(diagnostic_args) = cmd_result.diagnostic_args {
diagnostic_args
} else {
DiagnosticArgs::default() // Default diagnostic arguments;
};
let diagnostic_args = cmd_result.diagnostic_args.unwrap_or_default();
let mut exit_directives = if let Ok(exit_directives) = &cmd_result.command_result {
exit_directives.clone()
} else {
Expand Down

0 comments on commit 611b237

Please sign in to comment.