Skip to content

Commit

Permalink
remove redundant comma
Browse files Browse the repository at this point in the history
  • Loading branch information
Supinic committed Nov 19, 2024
1 parent 2d09a56 commit 1e23b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/reminder.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ module.exports = class Reminder extends require("./template.js") {

const uncheckedAuthorMention = await platform.createUserMention(fromUserData);
const authorBanphraseCheck = await sb.Banphrase.execute(uncheckedAuthorMention, channelData);
const authorMention = (authorBanphraseCheck.passed) ? `${uncheckedAuthorMention},` : "[Banphrased username],";
const authorMention = (authorBanphraseCheck.passed) ? `${uncheckedAuthorMention}` : "[Banphrased username]";

const targetMention = await platform.createUserMention(targetUserData);
let message = `${authorMention}, ${targetMention} just typed in channel ${channelName}`;
Expand Down

0 comments on commit 1e23b00

Please sign in to comment.