diff options
| author | 2022-09-19 02:15:32 +0200 | |
|---|---|---|
| committer | 2022-09-19 02:15:32 +0200 | |
| commit | 27a9e8051b074558a302ac297ec7758044dc65fd (patch) | |
| tree | 912cae8640e65a7ead1f8f35c112894fd04759c0 | |
| parent | use a clearer name (diff) | |
get rid of unnecessary check
Diffstat (limited to '')
| -rw-r--r-- | botcore/utils/cooldown.py | 5 | 
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  |