aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2022-09-19 02:15:32 +0200
committerGravatar Numerlor <[email protected]>2022-09-19 02:15:32 +0200
commit27a9e8051b074558a302ac297ec7758044dc65fd (patch)
tree912cae8640e65a7ead1f8f35c112894fd04759c0
parentuse a clearer name (diff)
get rid of unnecessary check
-rw-r--r--botcore/utils/cooldown.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/botcore/utils/cooldown.py b/botcore/utils/cooldown.py
index 817f6947..28ad8795 100644
--- a/botcore/utils/cooldown.py
+++ b/botcore/utils/cooldown.py
@@ -129,12 +129,9 @@ class _CommandCooldownManager:
separated_arguments = _SeparatedArguments.from_full_arguments(call_arguments)
cooldowns_list = self._cooldowns.get(
(channel, separated_arguments.hashable),
- None
+ [],
)
- if cooldowns_list is None:
- return False
-
for item in cooldowns_list:
if item.non_hashable_arguments == separated_arguments.non_hashable:
return item.timeout_timestamp > current_time