mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:26:21 +02:00
Fix lint
This commit is contained in:
@@ -104,8 +104,10 @@ module.exports = class ApplesToApplesCommand extends Command {
|
||||
await msg.say('Hmm... No one wins. Dealing back cards...');
|
||||
for (const pick of cards) {
|
||||
for (const card of pick.cards) {
|
||||
/* eslint-disable max-depth */
|
||||
if (!game.players.has(pick.id)) continue;
|
||||
game.players.get(pick.id).hand.add(card);
|
||||
/* eslint-enable max-depth */
|
||||
}
|
||||
}
|
||||
game.czar.strikes++;
|
||||
|
||||
@@ -104,8 +104,10 @@ module.exports = class CardsAgainstHumanityCommand extends Command {
|
||||
await msg.say('Hmm... No one wins. Dealing back cards...');
|
||||
for (const pick of cards) {
|
||||
for (const card of pick.cards) {
|
||||
/* eslint-disable max-depth */
|
||||
if (!game.players.has(pick.id)) continue;
|
||||
game.players.get(pick.id).hand.add(card);
|
||||
/* eslint-enable max-depth */
|
||||
}
|
||||
}
|
||||
game.czar.strikes++;
|
||||
|
||||
Reference in New Issue
Block a user