This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 65a264ea73f617c2f0a0f3232efb34b07e7bae64
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Dec 19 10:46:48 2021 -0500

    No need to nest.
---
 .../java/org/apache/logging/log4j/core/util/OptionConverter.java     | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/OptionConverter.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/OptionConverter.java
index 025cedc..c1f0b13 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/OptionConverter.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/OptionConverter.java
@@ -162,10 +162,9 @@ public final class OptionConverter {
         if (hashIndex == -1) {
             if("NULL".equalsIgnoreCase(value)) {
                 return null;
-            } else {
-                // no class name specified : use standard Level class
-                return Level.toLevel(value, defaultValue);
             }
+            // no class name specified : use standard Level class
+            return Level.toLevel(value, defaultValue);
         }
 
         Level result = defaultValue;

Reply via email to