Skip to content

Commit

Permalink
Inline code
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Jan 21, 2024
1 parent 0e529c7 commit a0e40e3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,7 @@ private StopCluster toStopCluster(Document document) {
var modes = Arrays.asList(document.getValues(MODE));
var agencies = Arrays
.stream(document.getValues(AGENCY_IDS))
.map(id -> {
var fsid = FeedScopedId.parse(id);
return transitService.getAgencyForId(fsid);
})
.map(id -> transitService.getAgencyForId(FeedScopedId.parse(id)))
.filter(Objects::nonNull)
.map(StopClusterMapper::toAgency)
.toList();
Expand Down

0 comments on commit a0e40e3

Please sign in to comment.