Skip to content

Commit 11822c5

Browse files
committed
Make linter happy
1 parent fb4850f commit 11822c5

File tree

1 file changed

+10
-12
lines changed
  • main/src/main/java/org/mobilitydata/gtfsvalidator/reportsummary/model

1 file changed

+10
-12
lines changed

main/src/main/java/org/mobilitydata/gtfsvalidator/reportsummary/model/FeedMetadata.java

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,8 @@ private String checkLocalDate(LocalDate localDate) {
477477
/**
478478
* Loads the service date range by determining the earliest start date and the latest end date for
479479
* all services referenced with a trip\_id in `trips.txt`. It handles three cases: 1. When only
480-
* `calendar.txt` is used. 2. When only `calendar\_dates.txt` is used. 3. When both
481-
* `calendar.txt` and `calendar\_dates.txt` are used.
480+
* `calendar.txt` is used. 2. When only `calendar\_dates.txt` is used. 3. When both `calendar.txt`
481+
* and `calendar\_dates.txt` are used.
482482
*
483483
* @param tripContainer the container for `trips.txt` data
484484
* @param calendarTable the container for `calendar.txt` data
@@ -505,21 +505,19 @@ public void loadServiceWindow(
505505
} catch (Exception e) {
506506
logger.atSevere().withCause(e).log("Error while loading Service Window");
507507
} finally {
508-
String serviceWindowStr = String.join(
509-
" to ",
510-
Stream
511-
.of(earliestStartDate, latestEndDate)
512-
.filter(Objects::nonNull)
513-
.map(LocalDate::toString)
514-
.toList()
515-
);
508+
String serviceWindowStr =
509+
String.join(
510+
" to ",
511+
Stream.of(earliestStartDate, latestEndDate)
512+
.filter(Objects::nonNull)
513+
.map(LocalDate::toString)
514+
.toList());
516515
feedInfo.put(JsonReportFeedInfo.FEED_INFO_SERVICE_WINDOW, serviceWindowStr);
517516
feedInfo.put(
518517
JsonReportFeedInfo.FEED_INFO_SERVICE_WINDOW_START,
519518
Objects.toString(earliestStartDate, ""));
520519
feedInfo.put(
521-
JsonReportFeedInfo.FEED_INFO_SERVICE_WINDOW_END,
522-
Objects.toString(latestEndDate, ""));
520+
JsonReportFeedInfo.FEED_INFO_SERVICE_WINDOW_END, Objects.toString(latestEndDate, ""));
523521
}
524522
}
525523

0 commit comments

Comments
 (0)