mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-14 08:02:17 +00:00
Merge pull request #15 from Fluffy-Bean/deepsource-autofix-16d41e08
refactor unnecessary `else` / `elif` when `if` block has a `return` statement
This commit is contained in:
commit
33109396b2
1 changed files with 2 additions and 2 deletions
|
@ -19,10 +19,10 @@ class Img(commands.Cog):
|
|||
async def get_image_attachments(ctx):
|
||||
if ctx.message.attachments:
|
||||
return ctx.message.attachments[0]
|
||||
elif ctx.message.reference:
|
||||
if ctx.message.reference:
|
||||
if ctx.message.reference.resolved.attachments:
|
||||
return ctx.message.reference.resolved.attachments[0]
|
||||
elif (
|
||||
if (
|
||||
ctx.message.reference.resolved.embeds
|
||||
and ctx.message.reference.resolved.embeds[0].image
|
||||
):
|
||||
|
|
Loading…
Add table
Reference in a new issue