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.
This commit is contained in:
deepsource-autofix[bot] 2023-09-10 14:10:38 +00:00 committed by GitHub
parent 14a9516a39
commit 9789305706
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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