Skip to content

Commit

Permalink
feat(irs):[#249] shorten to list in stream in policy controller
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-psosnowski committed Feb 5, 2024
1 parent 8e8caed commit ab0c158
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public void registerAllowedPolicy(final @RequestBody CreatePolicyRequest request
public List<PolicyResponse> getPolicies() {
return service.getStoredPolicies().stream()
.map(PolicyResponse::fromPolicy)
.collect(Collectors.toList());
.toList();
}

@Operation(operationId = "deleteAllowedPolicy",
Expand Down

0 comments on commit ab0c158

Please sign in to comment.