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

rmannibucau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/johnzon.git


The following commit(s) were added to refs/heads/master by this push:
     new f50e448  removing useless check
f50e448 is described below

commit f50e448c03d505777488c7b7fea5cbb83f7fba45
Author: Romain Manni-Bucau <rmannibu...@gmail.com>
AuthorDate: Thu May 7 09:45:36 2020 +0200

    removing useless check
---
 johnzon-core/src/main/java/org/apache/johnzon/core/JsonPointerImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/johnzon-core/src/main/java/org/apache/johnzon/core/JsonPointerImpl.java 
b/johnzon-core/src/main/java/org/apache/johnzon/core/JsonPointerImpl.java
index 5ad5958..2d9c461 100644
--- a/johnzon-core/src/main/java/org/apache/johnzon/core/JsonPointerImpl.java
+++ b/johnzon-core/src/main/java/org/apache/johnzon/core/JsonPointerImpl.java
@@ -379,7 +379,7 @@ public class JsonPointerImpl implements JsonPointer {
                     objectBuilder.add(entry.getKey(), 
addInternal(entry.getValue(), newValue, currentPath, canMatch(currentPath)));
                     currentPath.remove(entry.getKey());
 
-                    if (check && isPositionToAdd(currentPath)) {
+                    if (isPositionToAdd(currentPath)) {
                         
objectBuilder.add(referenceTokens.get(referenceTokens.size() - 1), newValue);
                     }
                 }

Reply via email to