Skip to content

Commit

Permalink
chore: remove useless question mark and return Result instead
Browse files Browse the repository at this point in the history
  • Loading branch information
anthraxx committed Mar 10, 2021
1 parent ee99bae commit 772d743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl MenuCommand {

fn run(args: Args) -> Result<()> {
if let Some(SubCommand::Completions(completions)) = args.subcommand {
return Ok(args::gen_completions(&completions)?);
return args::gen_completions(&completions);
}

let hasher = RandomState::new();
Expand Down

0 comments on commit 772d743

Please sign in to comment.