Merge "if" statements.

Reported by "soundcloud.io".
diff --git a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/partitioning/bsp/AbstractBSPTree.java b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/partitioning/bsp/AbstractBSPTree.java
index 3825353..b5aa0e0 100644
--- a/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/partitioning/bsp/AbstractBSPTree.java
+++ b/commons-geometry-core/src/main/java/org/apache/commons/geometry/core/partitioning/bsp/AbstractBSPTree.java
@@ -833,14 +833,12 @@
         /** {@inheritDoc} */
         @Override
         public int depth() {
-            if (depth == UNKNOWN_VALUE) {
-                // calculate our depth based on our parent's depth, if
-                // possible
-                if (parent != null) {
-                    final int parentDepth = parent.depth();
-                    if (parentDepth != UNKNOWN_VALUE) {
-                        depth = parentDepth + 1;
-                    }
+            // Calculate our depth based on our parent's depth, if possible.
+            if (depth == UNKNOWN_VALUE &&
+                parent != null) {
+                final int parentDepth = parent.depth();
+                if (parentDepth != UNKNOWN_VALUE) {
+                    depth = parentDepth + 1;
                 }
             }
             return depth;