Skip to content

Commit 7ef5e89

Browse files
committed
Formatting fix.
1 parent 4ea09d9 commit 7ef5e89

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

application/src/ext/java/org/opentripplanner/ext/carpooling/internal/DefaultCarpoolingRepository.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ public void addCarpoolTrip(CarpoolTrip trip) {
5858
streetVerticesWithinAreaStop(alightingArea).forEach(v -> {
5959
alightingAreasByVertex.put(v, alightingArea);
6060
});
61-
LOG.info("Added carpooling trip for start time: {}",
62-
trip.getStartTime()
63-
);
61+
LOG.info("Added carpooling trip for start time: {}", trip.getStartTime());
6462
}
6563

6664
private List<StreetVertex> streetVerticesWithinAreaStop(AreaStop stop) {

application/src/ext/java/org/opentripplanner/ext/carpooling/updater/SiriETCarpoolingUpdater.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ public void runPolling() {
9292
.getEstimatedVehicleJourneies()
9393
.forEach(ejv -> {
9494
var carpoolTrip = mapper.mapSiriToCarpoolTrip(ejv);
95-
repository.addCarpoolTrip(carpoolTrip);
95+
if (carpoolTrip != null) {
96+
repository.addCarpoolTrip(carpoolTrip);
97+
}
9698
});
9799
}
98100
}

0 commit comments

Comments
 (0)