Skip to content

Commit

Permalink
style(NotificationUtils): Use static import
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Oct 31, 2024
1 parent 0a8a81b commit 2065188
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import java.util.stream.Collectors;

import static java.nio.charset.StandardCharsets.UTF_8;
import static org.opentripplanner.middleware.i18n.Message.TRIP_SURVEY_NOTIFICATION;
import static org.opentripplanner.middleware.utils.ConfigUtils.getConfigPropertyAsText;

/**
Expand Down Expand Up @@ -101,10 +102,7 @@ public static String sendTripSurveyPush(OtpUser otpUser, MonitoredTrip trip) {

Locale locale = I18nUtils.getOtpUserLocale(otpUser);
String tripTime = DateTimeUtils.formatShortDate(trip.itinerary.startTime, locale);
String body = String.format(
org.opentripplanner.middleware.i18n.Message.TRIP_SURVEY_NOTIFICATION.get(locale),
tripTime
);
String body = String.format(TRIP_SURVEY_NOTIFICATION.get(locale), tripTime);
return sendPush(otpUser, body, trip.tripName, trip.id, TRIP_SURVEY_ID);
}

Expand Down

0 comments on commit 2065188

Please sign in to comment.