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
@@ -29,10 +29,10 @@ module.exports = class DefineCommand extends commando.Command {
.get(`https://www.google.com/search?tbm=isch&gs_l=img&q=${encodeURI(thingToSearch)}`);
const $ = cheerio.load(response.text);
const result = $('.images_table').find('img').first().attr('src');
searchMsg.edit(result);
return searchMsg.edit(result);
}
catch (err) {
searchMsg.edit(':x: Error! No Results Found!');
return searchMsg.edit(':x: Error! No Results Found!');
}
}
};