Skip to content

Commit

Permalink
Merge pull request #255 from The-4th-Hokage/deepsource-fix-6faa2902
Browse files Browse the repository at this point in the history
Simplify the `if` statement
  • Loading branch information
Dhruvacube authored Oct 22, 2021
2 parents 37c1393 + 7ee7490 commit a554fa5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions minato_namikaze/bot_files/lib/functions/moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ def check_if_warning_system_setup(ctx):

# checks support
def check_if_support_is_setup(ctx):
if discord.utils.get(ctx.guild.text_channels, topic=SetupVars.support.value):
support_channel = True
else:
support_channel = False
support_channel = bool(
discord.utils.get(ctx.guild.text_channels,
topic=SetupVars.support.value)
)
return support_channel


Expand Down

0 comments on commit a554fa5

Please sign in to comment.