Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodesdev committed May 4, 2024
1 parent 94c6647 commit 767047b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cli/src/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const GITHUB_BASE_URL: &'static str =
"https://raw.githubusercontent.com/dcodesdev/rustfinity.com/main/challenges";

pub async fn get_challenge(challenge: &str) -> anyhow::Result<()> {
if !challenge_exists(challenge).await {
if !challenge_exists(challenge).await? {
println!("Challenge does not exist 🥺\n\nPlease make sure you've written the challenge name correctly.");
return Ok(());
}
Expand Down

0 comments on commit 767047b

Please sign in to comment.