mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix lint
This commit is contained in:
@@ -64,6 +64,7 @@ module.exports = class RussianRouletteCommand extends Command {
|
||||
`);
|
||||
if (!nextUp.bot) {
|
||||
let first = true;
|
||||
/* eslint-disable max-depth */
|
||||
for (const next of turn) {
|
||||
const nextPlayer = players.get(next);
|
||||
if (!first) {
|
||||
@@ -78,6 +79,7 @@ module.exports = class RussianRouletteCommand extends Command {
|
||||
players.delete(next);
|
||||
removeFromArray(turn, next);
|
||||
}
|
||||
/* eslint-enable max-depth */
|
||||
}
|
||||
if (players.size === 1) winner = players.first();
|
||||
round++;
|
||||
|
||||
Reference in New Issue
Block a user