From 4f2ee00e072dfe5bd6d0bd34e754d85f6181857b Mon Sep 17 00:00:00 2001 From: Sven Strittmatter Date: Thu, 14 Mar 2024 22:19:48 +0100 Subject: [PATCH] #121 Use Better Variable Name Signed-off-by: Sven Strittmatter --- .../defectdojo/service/GenericDefectDojoService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }