From 97893057063996f5eb58d89382ad186e4b59d0b4 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 10 Sep 2023 14:10:38 +0000 Subject: [PATCH] refactor: delete unreachable statements This statement is unreachable, as the control flow will never reach upto this point. Consider removing this part of code or re-evaluating the control flow. --- lynxie/commands/image.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lynxie/commands/image.py b/lynxie/commands/image.py index 6ddad44..43eaded 100644 --- a/lynxie/commands/image.py +++ b/lynxie/commands/image.py @@ -34,10 +34,8 @@ class Img(commands.Cog): async for message in channel.history(limit=10): if message.attachments: return message.attachments[0] - break if message.embeds and message.embeds[0].image: return message.embeds[0].image - break return None