Skip to content

Commit beadc45

Browse files
authored
Replace string concatenation with template (#46)
# Swap from string concatenation to template Fixes deepsource error in PR #44 String literals are generally considered better than concatenation. # Link to github card #44 # Changes * Replace string concatenation with template
2 parents 56431ad + 4db54ea commit beadc45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/user/view.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default {
2525
});
2626
} else {
2727
interaction.reply({
28-
content: "**Your roles:**\n" + list,
28+
content: `**Your roles:**\n${list}`,
2929
ephemeral: true,
3030
});
3131
}

0 commit comments

Comments
 (0)