We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f783aae commit fab6e0fCopy full SHA for fab6e0f
src/test/java/org/opentripplanner/IntegrationTest.java
@@ -66,7 +66,7 @@ public void plan() throws IOException {
66
67
var transitLeg =
68
result.transitItineraries().stream()
69
- .filter(i -> i.legs().stream().anyMatch(l -> !l.intermediatePlaces().isEmpty()))
+ .filter(i -> i.legs().stream().anyMatch(l -> l.intermediatePlaces().isPresent()))
70
.findFirst()
71
.get()
72
.transitLegs()
0 commit comments