Skip to content

Commit

Permalink
Merge pull request #219 from The-4th-Hokage/deepsource-fix-7304141b
Browse files Browse the repository at this point in the history
Replace multiple `==` checks with `in`
  • Loading branch information
Dhruvacube authored Oct 17, 2021
2 parents 557d437 + 7f62ae8 commit 87225f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minato_namikaze/bot_files/cogs/moderation/moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async def ban(
reason: ActionReason = None,
):
"""A command which bans a given user"""
if ctx.message.author == member or ctx.message.author.id == member:
if member in (ctx.message.author, ctx.message.author.id):
await ctx.send(embed=ErrorEmbed(description="You **can't ban yourself**!"))
return
try:
Expand Down

0 comments on commit 87225f6

Please sign in to comment.