mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-31 07:43:13 +00:00
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:
parent
14a9516a39
commit
9789305706
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