Skip to content

Commit

Permalink
chore: use values directly in iteration
Browse files Browse the repository at this point in the history
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
  • Loading branch information
vladfrangu and kyranet committed Jun 23, 2021
1 parent ad8d16c commit 787e93b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/actions/ThreadListSync.js
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 787e93b

Please sign in to comment.