aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2019-01-08 16:18:43 -0500
committerGravatar GitHub <[email protected]>2019-01-08 16:18:43 -0500
commit0b8c5f074c725d739fffabb18076519d33a033a7 (patch)
treec1696ab77a54117eba71de90888d13fb41f2db53
parentAdd line after docstring (diff)
Remove list comprehension since any() works on generators
Co-Authored-By: sco1 <[email protected]>
-rw-r--r--bot/cogs/events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/events.py b/bot/cogs/events.py
index 77a15733d..b44e5871e 100644
--- a/bot/cogs/events.py
+++ b/bot/cogs/events.py
@@ -124,7 +124,7 @@ class Events:
return False
muted_check = any(
- [infraction["active"] for infraction in infraction_list if infraction["type"].lower() == "mute"]
+ infraction["active"] for infraction in infraction_list if infraction["type"].lower() == "mute"
)
return muted_check