Skip to content

Commit fab6e0f

Browse files
Simplify
1 parent f783aae commit fab6e0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/opentripplanner/IntegrationTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void plan() throws IOException {
6666

6767
var transitLeg =
6868
result.transitItineraries().stream()
69-
.filter(i -> i.legs().stream().anyMatch(l -> !l.intermediatePlaces().isEmpty()))
69+
.filter(i -> i.legs().stream().anyMatch(l -> l.intermediatePlaces().isPresent()))
7070
.findFirst()
7171
.get()
7272
.transitLegs()

0 commit comments

Comments
 (0)