Skip to content

Commit 88cf75f

Browse files
refactor(NotificationUtils): Remove HACK in email fallback comment.
1 parent 0e7ef70 commit 88cf75f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/opentripplanner/middleware/utils/NotificationUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ public static String replaceUserNameInFromEmail(String fromEmail, OtpUser otpUse
511511
int firstBracketIndex = fromEmail.indexOf('<');
512512
int lastBracketIndex = fromEmail.indexOf('>');
513513

514-
// HACK: If the OTP user does not have a name, fall back on email and replace the "@" sign,
514+
// If the OTP user does not have a name, fall back on email and replace the "@" sign,
515515
// so that the user's email does not override the application email in brackets.
516516
if (firstBracketIndex < 0 || lastBracketIndex < 0) {
517517
return String.format("%s <%s>", otpUser.getDisplayedName(), fromEmail);

0 commit comments

Comments
 (0)