Omit catch block errors when not needed

This commit is contained in:
Dragon Fire
2020-03-14 11:57:15 -04:00
parent 6794cbfdc9
commit e7dfa229f1
15 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ module.exports = class UnitsCommand extends Command {
try {
const value = math.unit(amount, base).toNumber(target);
return msg.say(`${formatNumber(amount)} ${base} is ${formatNumber(value)} ${target}.`);
} catch (err) {
} catch {
return msg.say('Either an invalid unit type was provided or the unit types do not match.');
}
}