Code style tweak

This commit is contained in:
Dragory 2020-05-22 21:19:14 +03:00
parent c6b68948b9
commit a6828b60a9
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -633,14 +633,11 @@ export class MutesPlugin extends ZeppelinPlugin<TConfigSchema> {
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(" ")}`,
);
}
}