Skip to content

Commit

Permalink
[MODINVSTOR-1243] Remove unnecessary collect
Browse files Browse the repository at this point in the history
  • Loading branch information
Saba-Zedginidze-EPAM committed Aug 23, 2024
1 parent 26548fa commit 7106030
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private void getItemsFromTenants(RoutingContext routingContext) {
.thenApply(v -> getItemsFutures.stream()
.map(CompletableFuture::join)
.flatMap(List::stream)
.collect(toList()))
.toList())
.thenApply(this::constructResponse)
.thenAccept(jsonObject -> JsonResponse.success(routingContext.response(), jsonObject));
}
Expand Down

0 comments on commit 7106030

Please sign in to comment.