From 30b81c143efb7cd65320a08c62308e59f4e06de9 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 21 Feb 2018 22:37:52 +0000 Subject: [PATCH] This is only used once --- commands/search/google.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/search/google.js b/commands/search/google.js index 8893f89e..51c54f10 100644 --- a/commands/search/google.js +++ b/commands/search/google.js @@ -31,8 +31,7 @@ module.exports = class GoogleCommand extends Command { q: query }); if (!body.items) return msg.say('Could not find any results.'); - const data = body.items[0]; - return msg.say(data.formattedUrl); + return msg.say(body.items[0].formattedUrl); } catch (err) { return msg.say(`http://lmgtfy.com/?iie=1&q=${encodeURIComponent(query)}`); }