diff options
| author | 2021-05-19 17:21:12 -0500 | |
|---|---|---|
| committer | 2021-05-19 17:21:12 -0500 | |
| commit | 7ad20d865e499942d13b4589101b65827e135de3 (patch) | |
| tree | 9e78b3a9e995e979732e7dc56d61cbcc60fa57cb /bot/exts | |
| parent | Merge branch 'main' into http_status_command_randomness (diff) | |
remove unnecessary check
Diffstat (limited to 'bot/exts')
| -rw-r--r-- | bot/exts/evergreen/status_codes.py | 4 | 
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: | 
