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

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

commit c2f929e2b182d070caf6ed3f605380d09cd1765b
Author: XenoAmess <[email protected]>
AuthorDate: Sat Jul 4 10:01:34 2020 +0800

    simplify if
---
 .../commons/geometry/core/partitioning/bsp/AbstractRegionBSPTree.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/partitioning/bsp/AbstractRegionBSPTree.java
 
b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/partitioning/bsp/AbstractRegionBSPTree.java
index 53771c1..770895f 100644
--- 
a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/partitioning/bsp/AbstractRegionBSPTree.java
+++ 
b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/partitioning/bsp/AbstractRegionBSPTree.java
@@ -1079,7 +1079,7 @@ public abstract class AbstractRegionBSPTree<
             final RegionLocation minusLocation = 
condenseRecursive(node.getMinus());
             final RegionLocation plusLocation = 
condenseRecursive(node.getPlus());
 
-            if (minusLocation != null && plusLocation != null && minusLocation 
== plusLocation) {
+            if (minusLocation == plusLocation && minusLocation != null) {
                 node.setLocationValue(minusLocation);
                 node.clearCut();
 

Reply via email to