Skip to content

Commit

Permalink
#23 Remove Unnecessary Code Clutter
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Strittmatter <[email protected]>
  • Loading branch information
Weltraumschaf committed Feb 2, 2024
1 parent ffb186d commit 09d1f1c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected PaginatedResult<T> internalSearch(Map<String, Object> queryParams, lon
var restTemplate = this.getRestTemplate();
HttpEntity<String> payload = new HttpEntity<>(getDefectDojoAuthorizationHeaders());

var mutableQueryParams = new HashMap<String, Object>(queryParams);
var mutableQueryParams = new HashMap<>(queryParams);

mutableQueryParams.put("limit", String.valueOf(limit));
mutableQueryParams.put("offset", String.valueOf(offset));
Expand All @@ -133,7 +133,7 @@ protected PaginatedResult<T> internalSearch(Map<String, Object> queryParams, lon
public List<T> search(Map<String, Object> queryParams) throws URISyntaxException, JsonProcessingException {
List<T> objects = new LinkedList<>();

boolean hasNext = false;
boolean hasNext;
long page = 0;
do {
var response = internalSearch(queryParams, DEFECT_DOJO_OBJET_LIMIT, DEFECT_DOJO_OBJET_LIMIT * page++);
Expand Down

0 comments on commit 09d1f1c

Please sign in to comment.