From 3d2b3c12cbca69997bb6a7d205e7d1d4dcd382e3 Mon Sep 17 00:00:00 2001 From: Oliver Cordingley Date: Sat, 16 Jan 2021 15:50:15 +0000 Subject: [PATCH] fixed eslint problems in closeall.js --- src/commands/closeall.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/closeall.js b/src/commands/closeall.js index 3de93db..9adafde 100644 --- a/src/commands/closeall.js +++ b/src/commands/closeall.js @@ -174,7 +174,7 @@ module.exports = { if (fs.existsSync(paths.log) && fs.existsSync(paths.json)) { let data = JSON.parse(fs.readFileSync(paths.json)); - for (u in data.entities.users) users.push(u); + data.entities.users.forEach(u => users.push(u)); embed.addField('Web archive', await archive.export(Ticket, channel)); } @@ -198,8 +198,8 @@ module.exports = { client.channels.fetch(channel) .then(c => c.delete() - .then(o => log.info(`Deleted channel with name: \'#${o.name}\' <${o.id}>`)) - .catch(e => log.error(e))) + .then(o => log.info(`Deleted channel with name: '#${o.name}' <${o.id}>`)) + .catch(e => log.error(e))) .catch(e => log.error(e)); }); }