Skip to content

Commit

Permalink
#222 - Fix code scanning alert - Unread local variable
Browse files Browse the repository at this point in the history
- correctly use the invalid terms list generated before
  • Loading branch information
michael-82 committed Nov 3, 2023
1 parent 30ed451 commit 3e5bd98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public ResponseEntity<Object> validateTemplates(Principal principal) {
.comment(convertedQuery.comment())
.lastModified(convertedQuery.lastModified())
.createdBy(convertedQuery.createdBy())
.invalidTerms(convertedQuery.invalidTerms())
.invalidTerms(invalidTermCodes)
.isValid(convertedQuery.isValid())
.build();
ret.add(convertedQueryWithoutContent);
Expand Down

0 comments on commit 3e5bd98

Please sign in to comment.