aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/status_codes.py
diff options
context:
space:
mode:
authorGravatar Icebluewolf <[email protected]>2021-05-19 17:21:12 -0500
committerGravatar GitHub <[email protected]>2021-05-19 17:21:12 -0500
commit7ad20d865e499942d13b4589101b65827e135de3 (patch)
tree9e78b3a9e995e979732e7dc56d61cbcc60fa57cb /bot/exts/evergreen/status_codes.py
parentMerge branch 'main' into http_status_command_randomness (diff)
remove unnecessary check
Diffstat (limited to 'bot/exts/evergreen/status_codes.py')
-rw-r--r--bot/exts/evergreen/status_codes.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/exts/evergreen/status_codes.py b/bot/exts/evergreen/status_codes.py
index dabf004d..089bdb4a 100644
--- a/bot/exts/evergreen/status_codes.py
+++ b/bot/exts/evergreen/status_codes.py
@@ -24,9 +24,7 @@ class HTTPStatusCodes(commands.Cog):
async def http_status_group(self, ctx: commands.Context, code: int) -> None:
"""Choose a cat or dog randomly for the given status code."""
subcmd = choice((self.http_cat, self.http_dog))
-
- if await subcmd.can_run(ctx):
- await subcmd(ctx, code)
+ await subcmd(ctx, code)
@http_status_group.command(name="cat")
async def http_cat(self, ctx: commands.Context, code: int) -> None: