diff options
| author | 2019-01-08 16:18:43 -0500 | |
|---|---|---|
| committer | 2019-01-08 16:18:43 -0500 | |
| commit | 0b8c5f074c725d739fffabb18076519d33a033a7 (patch) | |
| tree | c1696ab77a54117eba71de90888d13fb41f2db53 | |
| parent | Add line after docstring (diff) | |
Remove list comprehension since any() works on generators
Co-Authored-By: sco1 <[email protected]>
| -rw-r--r-- | bot/cogs/events.py | 2 | 
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  |