You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/06/30 11:34:49 UTC

[commons-configuration] 02/05: Merged else if block

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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git

commit 3c2d55a9452c75e3b761b49a9e681e1daf5c26bc
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Jun 29 17:38:57 2022 -0400

    Merged else if block
---
 .../java/org/apache/commons/configuration2/INIConfiguration.java  | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/apache/commons/configuration2/INIConfiguration.java b/src/main/java/org/apache/commons/configuration2/INIConfiguration.java
index 54eab0bf..4ef3e956 100644
--- a/src/main/java/org/apache/commons/configuration2/INIConfiguration.java
+++ b/src/main/java/org/apache/commons/configuration2/INIConfiguration.java
@@ -543,11 +543,9 @@ public class INIConfiguration extends BaseHierarchicalConfiguration implements F
                     } else {
                         if (escape && quote == c) {
                             escape = false;
-                        } else {
-                            if (escape) {
-                                escape = false;
-                                result.append('\\');
-                            }
+                        } else if (escape) {
+                            escape = false;
+                            result.append('\\');
                         }
                         result.append(c);
                     }