From 7ad20d865e499942d13b4589101b65827e135de3 Mon Sep 17 00:00:00 2001 From: Icebluewolf <44532864+Icebluewolf@users.noreply.github.com> Date: Wed, 19 May 2021 17:21:12 -0500 Subject: remove unnecessary check --- bot/exts/evergreen/status_codes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bot/exts/evergreen/status_codes.py') 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: -- cgit v1.2.3