Skip to content
This repository was archived by the owner on Nov 13, 2022. It is now read-only.

Commit cc8bde1

Browse files
committed
Fix clippy issue.
1 parent c45ec72 commit cc8bde1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/github.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -476,18 +476,18 @@ Thanks for asking 🥰"
476476
.to_string();
477477

478478
write_issue_comment(&client, &ic, &comment_body)?;
479-
return Ok(());
479+
Ok(())
480480
}
481481
_ => {
482482
let command = command_res.unwrap();
483483

484484
if !config::command_enabled(&command.command) {
485485
warn!("Command {:#?} is not enabled.", command.command);
486-
return Ok(());
487-
}
488-
489-
match command.command {
490-
commands::CommandAction::Retry => handle_retry_command(&client, &ic),
486+
Ok(())
487+
} else {
488+
match command.command {
489+
commands::CommandAction::Retry => handle_retry_command(&client, &ic),
490+
}
491491
}
492492
}
493493
}

0 commit comments

Comments
 (0)