Skip to content

Commit e3f6746

Browse files
committed
Style changes
1 parent 07a4f6b commit e3f6746

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mllib/src/main/scala/org/apache/spark/mllib/tree/DecisionTree.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,11 @@ class DecisionTree (private val strategy: Strategy) extends Serializable with Lo
104104
// Check whether all the nodes at the current level at leaves.
105105
val allLeaf = splitsStatsForLevel.forall(_._2.gain <= 0)
106106
logDebug("all leaf = " + allLeaf)
107-
if (allLeaf) break = true // no more tree construction
108-
else level += 1
107+
if (allLeaf) {
108+
break = true // no more tree construction
109+
} else {
110+
level += 1
111+
}
109112
}
110113

111114
// Initialize the top or root node of the tree.

0 commit comments

Comments
 (0)