Skip to content

Commit

Permalink
Edit if statement brackets in hasNullarrayElement() method
Browse files Browse the repository at this point in the history
  • Loading branch information
afazel committed Jul 26, 2021
1 parent b10d4f3 commit eb25905
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,13 @@ protected final boolean hasParams() {
private boolean hasNullArrayElement(JsonNode node) {
for (JsonNode element: node) {
if(element.isNull()) {
if (node.isArray())
if (node.isArray()) {
return true;
}
else if (element.isContainerNode()) {
if (hasNullArrayElement(element))
}
} else if (element.isContainerNode()) {
if (hasNullArrayElement(element)) {
return true;
}
}
}
return false;
Expand Down

0 comments on commit eb25905

Please sign in to comment.