diff --git a/src/main/java/io/securecodebox/persistence/defectdojo/service/GenericDefectDojoService.java b/src/main/java/io/securecodebox/persistence/defectdojo/service/GenericDefectDojoService.java index 9350c96..6665f13 100644 --- a/src/main/java/io/securecodebox/persistence/defectdojo/service/GenericDefectDojoService.java +++ b/src/main/java/io/securecodebox/persistence/defectdojo/service/GenericDefectDojoService.java @@ -120,9 +120,9 @@ public final Optional searchUnique(@NonNull T searchObject) { @Override public final Optional searchUnique(@NonNull Map queryParams) { - var objects = search(queryParams); + var found = search(queryParams); - return objects.stream() + return found.stream() .filter(object -> object.equalsQueryString(queryParams)) .findFirst(); }