From a6828b60a9256f016409051a3838403130140154 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Fri, 22 May 2020 21:19:14 +0300 Subject: [PATCH] Code style tweak --- backend/src/plugins/Mutes.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/backend/src/plugins/Mutes.ts b/backend/src/plugins/Mutes.ts index 0a591a34..f3a3b6af 100644 --- a/backend/src/plugins/Mutes.ts +++ b/backend/src/plugins/Mutes.ts @@ -633,14 +633,11 @@ export class MutesPlugin extends ZeppelinPlugin { if (failed.length !== args.userIds.length) { this.sendSuccessMessage(msg.channel, `**${args.userIds.length - failed.length} active mute(s) cleared**`); } + if (failed.length) { - let list = ""; - for (const id of failed) { - list += id + " "; - } this.sendErrorMessage( msg.channel, - `**${failed.length}/${args.userIds.length} IDs failed**, they are not muted: ${list}`, + `**${failed.length}/${args.userIds.length} IDs failed**, they are not muted: ${failed.join(" ")}`, ); } }