Skip to content

Commit

Permalink
commands(tmdb): fix missing return.
Browse files Browse the repository at this point in the history
  • Loading branch information
evieluvsrainbows committed Jul 28, 2024
1 parent 9059676 commit 18dbbff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/search/tmdb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ pub async fn movie(context: Context<'_>, #[description = "Film name"] name: Stri
let results = result.results;
if results.is_empty() {
context.say(format!("No results found for `{name}`. Please try looking for another movie.")).await?;
return Ok(());
}

let id = results.first().unwrap().id;
Expand Down

0 comments on commit 18dbbff

Please sign in to comment.