mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 14:04:38 +02:00
Fix lint
This commit is contained in:
@@ -32,7 +32,7 @@ module.exports = class EvalCommand extends Command {
|
|||||||
|
|
||||||
run(msg, args) {
|
run(msg, args) {
|
||||||
// Make a bunch of helpers
|
// Make a bunch of helpers
|
||||||
/* eslint-disable no-unused-vars destructuring */
|
/* eslint-disable no-unused-vars, destructuring */
|
||||||
const message = msg;
|
const message = msg;
|
||||||
const client = msg.client;
|
const client = msg.client;
|
||||||
const lastResult = this.lastResult;
|
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
|
// Remove any surrounding code blocks before evaluation
|
||||||
if (args.script.startsWith('```') && args.script.endsWith('```')) {
|
if (args.script.startsWith('```') && args.script.endsWith('```')) {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ module.exports = class CommandDispatcher {
|
|||||||
const firstResult = (content.match(argRegex) || []).map(m => m.replace(argRegex, '$1$2'));
|
const firstResult = (content.match(argRegex) || []).map(m => m.replace(argRegex, '$1$2'));
|
||||||
const parsed = minimist(firstResult);
|
const parsed = minimist(firstResult);
|
||||||
const result = { flags: [...parsed] };
|
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 arg = command.args[i];
|
||||||
const parsedArg = result._[i];
|
const parsedArg = result._[i];
|
||||||
if (arg.isEmpty(parsedArg, msg, arg)) {
|
if (arg.isEmpty(parsedArg, msg, arg)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user