From 18dbbff45f2db19f47141a04029e68defc2f350d Mon Sep 17 00:00:00 2001 From: Evelyn Harthbrooke Date: Sun, 28 Jul 2024 00:26:27 -0600 Subject: [PATCH] commands(tmdb): fix missing return. --- src/commands/search/tmdb/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/search/tmdb/mod.rs b/src/commands/search/tmdb/mod.rs index c7d77ae..0068cc9 100644 --- a/src/commands/search/tmdb/mod.rs +++ b/src/commands/search/tmdb/mod.rs @@ -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;