Remove all useless async

This commit is contained in:
Daniel Odendahl Jr
2017-03-24 12:16:58 +00:00
parent 33b7d18d54
commit 0ce7eb3ee1
95 changed files with 287 additions and 287 deletions
+2 -2
View File
@@ -31,10 +31,10 @@ module.exports = class DefineCommand extends commando.Command {
let href = $('.r').first().find('a').first().attr('href');
if (!href) return Promise.reject(new Error('NO RESULTS'));
href = querystring.parse(href.replace('/url?', ''));
searchMsg.edit(href.q);
return searchMsg.edit(href.q);
}
catch (err) {
searchMsg.edit(':x: Error! No Results Found!');
return searchMsg.edit(':x: Error! No Results Found!');
}
}
};