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