From 1ac406826869b57189962938d4a623e572b51f03 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 15 Sep 2020 10:26:38 -0400 Subject: [PATCH] Fix lint --- commands/games-sp/akinator.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/commands/games-sp/akinator.js b/commands/games-sp/akinator.js index c0c0e034..cf38dfcf 100644 --- a/commands/games-sp/akinator.js +++ b/commands/games-sp/akinator.js @@ -118,13 +118,11 @@ module.exports = class AkinatorCommand extends Command { } else if (verification) { win = false; break; + } else if (timesGuessed >= 3 || forceGuess) { + win = true; + break; } else { - if (timesGuessed < 3 && !forceGuess) { - await msg.say('Hmm... Is that so? I can keep going!'); - } else { - win = true; - break; - } + await msg.say('Hmm... Is that so? I can keep going!'); } } }