Attempted fix at leak
parent
c78f58bf5a
commit
358604ec48
|
@ -57,6 +57,8 @@ export default class Util {
|
||||||
while (hasSubCommands) {
|
while (hasSubCommands) {
|
||||||
if (!resolvedCommand.subcommands.size) {
|
if (!resolvedCommand.subcommands.size) {
|
||||||
hasSubCommands = false; break;
|
hasSubCommands = false; break;
|
||||||
|
} else if (!args[0]) {
|
||||||
|
hasSubCommands = false; break;
|
||||||
} else if (resolvedCommand.subcommands.has(args[0])) {
|
} else if (resolvedCommand.subcommands.has(args[0])) {
|
||||||
resolvedCommand = resolvedCommand.subcommands.get(args[0]);
|
resolvedCommand = resolvedCommand.subcommands.get(args[0]);
|
||||||
args.shift();
|
args.shift();
|
||||||
|
|
Loading…
Reference in New Issue