mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 05:49:49 +02:00
Omit catch block errors when not needed
This commit is contained in:
@@ -15,7 +15,7 @@ module.exports = class HiCommand extends Command {
|
||||
try {
|
||||
await msg.react('👋');
|
||||
return null;
|
||||
} catch (err) {
|
||||
} catch {
|
||||
return msg.reply('Hi there!');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user