Skip to content

Commit

Permalink
secureCodeBox#121 Use Better Variable Name
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Strittmatter <[email protected]>
  • Loading branch information
Weltraumschaf committed Jul 3, 2024
1 parent 29ba64d commit 4f2ee00
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ public final Optional<T> searchUnique(@NonNull T searchObject) {

@Override
public final Optional<T> searchUnique(@NonNull Map<String, Object> queryParams) {
var objects = search(queryParams);
var found = search(queryParams);

return objects.stream()
return found.stream()
.filter(object -> object.equalsQueryString(queryParams))
.findFirst();
}
Expand Down

0 comments on commit 4f2ee00

Please sign in to comment.