diff options
-rw-r--r-- | src/commands/source.rs | 2 | ||||
-rw-r--r-- | src/commands/util.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/source.rs b/src/commands/source.rs index 3e0167d..6a58017 100644 --- a/src/commands/source.rs +++ b/src/commands/source.rs @@ -46,7 +46,7 @@ pub async fn source( Some(("download", matches)) => download(matches, config, repo, progressbars).await, Some(("of", matches)) => of(matches, config, repo).await, Some((other, _)) => return Err(anyhow!("Unknown subcommand: {}", other)), - None => return Err(anyhow!("No subcommand")), + None => Err(anyhow!("No subcommand")), } } diff --git a/src/commands/util.rs b/src/commands/util.rs index acfbdd2..2e409d9 100644 --- a/src/commands/util.rs +++ b/src/commands/util.rs @@ -106,7 +106,7 @@ where if !lint_ok { bar.finish_with_message("Linting errored"); - return Err(anyhow!("Linting was not successful")); + Err(anyhow!("Linting was not successful")) } else { bar.finish_with_message(format!( "Finished linting {} package scripts", |