refactor(ApplicationCommandManager): remove unused assignment (#6063)

This commit is contained in:
Antonio Román
2021-07-07 14:41:02 +02:00
committed by GitHub
parent 4eb3a2a885
commit 98a5b52d8b

View File

@@ -83,7 +83,7 @@ class ApplicationCommandManager extends CachedManager {
*/ */
async fetch(id, { guildId, cache = true, force = false } = {}) { async fetch(id, { guildId, cache = true, force = false } = {}) {
if (typeof id === 'object') { if (typeof id === 'object') {
({ guildId, cache = true, force = false } = id); ({ guildId, cache = true } = id);
} else if (id) { } else if (id) {
if (!force) { if (!force) {
const existing = this.cache.get(id); const existing = this.cache.get(id);