mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-06-30 22:06:17 +00:00
Merge pull request #11 from Fluffy-Bean/deepsource-autofix-c54f377b
delete unreachable statements
This commit is contained in:
commit
e4b223f28d
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue