From f7fe7f62422abde9dda26ab25b79f06ebed646dd Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 5 Jun 2021 12:33:26 -0400 Subject: [PATCH] Fix lint --- commands/util/eval.js | 4 ++-- framework/Dispatcher.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/util/eval.js b/commands/util/eval.js index 60a3ef97..f602209d 100644 --- a/commands/util/eval.js +++ b/commands/util/eval.js @@ -32,7 +32,7 @@ module.exports = class EvalCommand extends Command { run(msg, args) { // Make a bunch of helpers - /* eslint-disable no-unused-vars destructuring */ + /* eslint-disable no-unused-vars, destructuring */ const message = msg; const client = msg.client; const lastResult = this.lastResult; @@ -48,7 +48,7 @@ module.exports = class EvalCommand extends Command { } } }; - /* eslint-enable no-unused-vars destructuring */ + /* eslint-enable no-unused-vars, destructuring */ // Remove any surrounding code blocks before evaluation if (args.script.startsWith('```') && args.script.endsWith('```')) { diff --git a/framework/Dispatcher.js b/framework/Dispatcher.js index a394cf17..dc62bbe2 100644 --- a/framework/Dispatcher.js +++ b/framework/Dispatcher.js @@ -34,7 +34,7 @@ module.exports = class CommandDispatcher { const firstResult = (content.match(argRegex) || []).map(m => m.replace(argRegex, '$1$2')); const parsed = minimist(firstResult); const result = { flags: [...parsed] }; - for (let i = 0; i > command.args.length; i++) { + for (let i = 0; i < command.args.length; i++) { const arg = command.args[i]; const parsedArg = result._[i]; if (arg.isEmpty(parsedArg, msg, arg)) {