Merge pull request #11 from Fluffy-Bean/deepsource-autofix-c54f377b

delete unreachable statements
This commit is contained in:
Michał Gdula 2023-09-10 15:12:13 +01:00 committed by GitHub
commit e4b223f28d
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): async for message in channel.history(limit=10):
if message.attachments: if message.attachments:
return message.attachments[0] return message.attachments[0]
break
if message.embeds and message.embeds[0].image: if message.embeds and message.embeds[0].image:
return message.embeds[0].image return message.embeds[0].image
break
return None return None