mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 10:25:11 +02:00
Omit catch block errors when not needed
This commit is contained in:
@@ -42,7 +42,7 @@ module.exports = class GoogleCommand extends Command {
|
||||
const nsfw = msg.channel.nsfw || false;
|
||||
try {
|
||||
href = await this.customSearch(query, nsfw);
|
||||
} catch (err) {
|
||||
} catch {
|
||||
href = `http://lmgtfy.com/?iie=1&q=${encodeURIComponent(query)}`;
|
||||
}
|
||||
if (!href) return msg.say('Could not find any results.');
|
||||
|
||||
Reference in New Issue
Block a user