Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public static ApplicationGuestNotifyRequest from(
@Override
public LunaNotificationButtonUrls getNotificationButtonUrls() {
return LunaNotificationButtonUrls.of(
NotificationButtonUrl.empty(),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The purpose of adding an empty notification button via NotificationButtonUrl.empty() is not immediately obvious from the code. This can make the code harder to understand and maintain for future developers, as it suggests a hidden requirement from the downstream notification service. To improve clarity, please consider adding a comment explaining why this empty button is necessary.

For example:

// The notification template requires two buttons; the first is a placeholder.
NotificationButtonUrl.empty(),

NotificationButtonUrl.of(WARNING_PAGE, WARNING_PAGE)
);
}
Expand Down