From bacfef67708d807603412d189e63df52255311eb Mon Sep 17 00:00:00 2001 From: Bsian Date: Thu, 31 Oct 2019 23:38:42 +0000 Subject: [PATCH] Fix leak --- src/class/Util.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/class/Util.ts b/src/class/Util.ts index efdd055..db9f880 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -68,8 +68,11 @@ export default class Util { for (const subCmd of resolvedCommand.subcommands.toArray()) { if (subCmd.aliases.includes(args[0])) { resolvedCommand = subCmd; args.shift(); break; + } else { + hasSubCommands = false; break; } } + break; } }