From 39e66ae2fa0631c4f2090fc55b69d1d673483d14 Mon Sep 17 00:00:00 2001 From: Hongbo <12580159+ya0guang@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:02:11 -0500 Subject: [PATCH] Remove redundant `ctxs` initialization and `continue` bot.py Signed-off-by: Hongbo <12580159+ya0guang@users.noreply.github.com> --- bot.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/bot.py b/bot.py index bb47c75283..0426816192 100644 --- a/bot.py +++ b/bot.py @@ -1042,7 +1042,6 @@ async def trigger_auto_triggers(self, message, channel, *, cls=commands.Context) ctxs = [] if alias is not None: - ctxs = [] aliases = normalize_alias(alias) if not aliases: logger.warning("Alias %s is invalid as called in autotrigger.", invoker) @@ -1063,7 +1062,6 @@ async def trigger_auto_triggers(self, message, channel, *, cls=commands.Context) await self.invoke(ctx) ctx.command.checks = old_checks - continue async def get_context(self, message, *, cls=commands.Context): """