From 497bd0e379a4d54df681e34534e39814b9d47661 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 17 Apr 2021 10:19:21 -0400 Subject: [PATCH] Fix lint --- commands/games-sp/20-questions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/games-sp/20-questions.js b/commands/games-sp/20-questions.js index 7fb844c6..5b5a6665 100644 --- a/commands/games-sp/20-questions.js +++ b/commands/games-sp/20-questions.js @@ -96,13 +96,13 @@ module.exports = class TwentyQuestionsCommand extends Command { const answers = []; $(resultText).find('a').each((i, elem) => { const href = `${baseURI}${$(elem).attr('href')}`; - answers.push({ href, text: $(elem).text().trim() }) + answers.push({ href, text: $(elem).text().trim() }); }); return { question: resultText.text().split('\n')[0], answers, url: `${baseURI}${startURL}` - } + }; } async nextQuestion(url, referer) { @@ -127,12 +127,12 @@ module.exports = class TwentyQuestionsCommand extends Command { const answers = []; $(resultText).find('a').each((i, elem) => { const href = `${baseURI}${$(elem).attr('href')}`; - answers.push({ href, text: $(elem).text().trim() }) + answers.push({ href, text: $(elem).text().trim() }); }); return { question: resultText.text().split('\n')[0], answers, url - } + }; } };