Skip to content

Commit

Permalink
refactor: Apply fix after code review
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Kopysov <o.kopysov@samsung.com>
  • Loading branch information
o-kopysov committed Jun 18, 2024
1 parent ef280cc commit 637c1b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/lpvs/util/LPVSPayloadUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ public static LPVSLicense convertOsoriDbResponseToLicense(String payload) {
JsonElement nicknameListArray =
detailInfoArray.get(0).getAsJsonObject().get("nicknameList");
if (nicknameListArray != null && nicknameListArray.isJsonArray()) {
JsonArray nicknameArray = nicknameListArray.getAsJsonArray();
nicknameArray.forEach(element -> nicknameList.add(element.getAsString()));
nicknameListArray
.getAsJsonArray()
.forEach(element -> nicknameList.add(element.getAsString()));
}
lic.setAlternativeNames(String.join(",", nicknameList));

Expand Down

0 comments on commit 637c1b1

Please sign in to comment.