Code Improvements

This commit is contained in:
Daniel Odendahl Jr
2017-04-17 21:57:35 +00:00
parent 45ba18bea9
commit 9dd0589de5
46 changed files with 73 additions and 209 deletions
+1 -2
View File
@@ -31,8 +31,7 @@ module.exports = class MathCommand extends Command {
try {
const solved = math.eval(expression);
return message.say(solved).catch(() => message.say(':x: Error! Invalid statement!'));
}
catch (err) {
} catch (err) {
return message.say(':x: Error! Invalid statement!');
}
}