From eb259057566258a83b7d3fee75aebe99db3d9e9c Mon Sep 17 00:00:00 2001 From: Azar Fazel Date: Mon, 26 Jul 2021 09:53:39 -0700 Subject: [PATCH] Edit if statement brackets in hasNullarrayElement() method --- .../rest/validation/AbstractConfigurationValidator.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/opensearch/security/dlic/rest/validation/AbstractConfigurationValidator.java b/src/main/java/org/opensearch/security/dlic/rest/validation/AbstractConfigurationValidator.java index 7b5d07b2cc..6eb862ecf5 100644 --- a/src/main/java/org/opensearch/security/dlic/rest/validation/AbstractConfigurationValidator.java +++ b/src/main/java/org/opensearch/security/dlic/rest/validation/AbstractConfigurationValidator.java @@ -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;