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
@@ -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.');