aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mbaruh <[email protected]>2020-10-17 19:15:30 +0300
committerGravatar mbaruh <[email protected]>2020-10-17 19:15:30 +0300
commitdb771de1122d4f60e4531fd8538cdfb7ffeb849a (patch)
tree8a3f16669b3cf5bb96a28423860716401481016a
parentAmended to work with current tests (diff)
Fixed style and linting
-rw-r--r--bot/utils/channel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/utils/channel.py b/bot/utils/channel.py
index 615698cab..487794c59 100644
--- a/bot/utils/channel.py
+++ b/bot/utils/channel.py
@@ -21,8 +21,8 @@ def is_mod_channel(channel: discord.TextChannel) -> bool:
log.trace(f"Checking if #{channel} is a mod channel.")
categories = (Categories.modmail, Categories.logs)
- return channel.id in constants.MODERATION_CHANNELS \
- or any(is_in_category(channel, category) for category in categories)
+ return (channel.id in constants.MODERATION_CHANNELS
+ or any(is_in_category(channel, category) for category in categories))
def is_in_category(channel: discord.TextChannel, category_id: int) -> bool: