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