mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 21:40:51 +02:00
Fix lint
This commit is contained in:
@@ -20,7 +20,7 @@ module.exports = class MathCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
run(msg, { expression }) {
|
run(msg, { expression }) {
|
||||||
try {
|
try {
|
||||||
const evaluated = Parser.evaluate(expression).toString();
|
const evaluated = Parser.evaluate(expression).toString();
|
||||||
return msg.reply(evaluated).catch(() => msg.reply('Invalid expression.'));
|
return msg.reply(evaluated).catch(() => msg.reply('Invalid expression.'));
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Reference in New Issue
Block a user