Skip to content

Commit

Permalink
Refactor filter logic in PicsureInfoService
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcolon021 committed Mar 11, 2024
1 parent 2e9e805 commit 57ec71a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public Map<UUID, String> resources(HttpHeaders headers) {
if (StringUtils.isNotBlank(JAXRSConfiguration.application_stack)) {
return resourceRepo.list().stream()
.filter(
resource -> resource.getResourceRSPath().contains("." + JAXRSConfiguration.application_stack + ".")
|| resource.getResourceRSPath().contains("localhost") || resource.getHidden()
resource -> (resource.getResourceRSPath().contains("." + JAXRSConfiguration.application_stack + ".")
|| resource.getResourceRSPath().contains("localhost")) && !resource.getHidden()
).collect(Collectors.toMap(Resource::getUuid, Resource::getName));
}

Expand Down

0 comments on commit 57ec71a

Please sign in to comment.