From 787e93b3804c42dd9d123d2bad4a4f01441e0816 Mon Sep 17 00:00:00 2001 From: Vlad Frangu Date: Wed, 23 Jun 2021 12:47:59 +0300 Subject: [PATCH] chore: use values directly in iteration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Antonio Román --- src/client/actions/ThreadListSync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/actions/ThreadListSync.js b/src/client/actions/ThreadListSync.js index 0082cad63f16..cc5c92ac61e7 100644 --- a/src/client/actions/ThreadListSync.js +++ b/src/client/actions/ThreadListSync.js @@ -17,7 +17,7 @@ class ThreadListSyncAction extends Action { if (channel) this.removeStale(channel); } } else { - for (const [, channel] of guild.channels.cache) { + for (const channel of guild.channels.cache.values()) { this.removeStale(channel); } }