Skip to content

Commit

Permalink
fix: sonar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JordenReuter committed Feb 14, 2024
1 parent 292dbed commit b20f9d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public PageResult<Assignment> findByCriteria(AssignmentSearchCriteria criteria)
var root = cq.from(Assignment.class);

if (criteria.getAppId() != null) {
List<String> filteredAppIds = Arrays.stream(criteria.getAppId()).filter((s) -> !s.isBlank()).toList();
List<String> filteredAppIds = Arrays.stream(criteria.getAppId()).filter(s -> !s.isBlank()).toList();
if (!filteredAppIds.isEmpty()) {
cq.where(root.get(Assignment_.permission).get(Permission_.APP_ID).in(filteredAppIds));
}
Expand Down

0 comments on commit b20f9d0

Please sign in to comment.