mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Fix lint
This commit is contained in:
@@ -95,7 +95,7 @@ module.exports = class MinesweeperCommand extends Command {
|
||||
await msg.say('You cannot flag a range.');
|
||||
continue;
|
||||
}
|
||||
// eslint-disable max-depth
|
||||
/* eslint-disable max-depth */
|
||||
if (xRange) {
|
||||
for (let i = x; i <= xRange; i++) {
|
||||
if (flag) {
|
||||
@@ -159,7 +159,7 @@ module.exports = class MinesweeperCommand extends Command {
|
||||
if (win === true || win === false) break;
|
||||
}
|
||||
}
|
||||
// eslint-enable max-depth
|
||||
/* eslint-enable max-depth */
|
||||
const newScore = Date.now() - startTime;
|
||||
const highScoreGet = await this.client.redis.get(`minesweeper-${size}`);
|
||||
const highScore = highScoreGet ? Number.parseInt(highScoreGet, 10) : null;
|
||||
|
||||
Reference in New Issue
Block a user