Skip to content

Commit

Permalink
refactor(RoleManager): rm redundant check for icon in #edit
Browse files Browse the repository at this point in the history
  • Loading branch information
iShibi committed Sep 30, 2021
1 parent 4c465dd commit cd025db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managers/RoleManager.js
Expand Up @@ -192,7 +192,7 @@ class RoleManager extends CachedManager {
}

let icon = data.icon;
if (typeof icon !== 'undefined') {
if (icon) {
const guildEmojiURL = this.guild.emojis.resolve(icon)?.url;
icon = guildEmojiURL ? await DataResolver.resolveImage(guildEmojiURL) : await DataResolver.resolveImage(icon);
}
Expand Down

0 comments on commit cd025db

Please sign in to comment.