Skip to content

Commit db0d773

Browse files
committed
scala style fix
1 parent 6a38f48 commit db0d773

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,9 @@ class DecisionTree (private val strategy: Strategy) extends Serializable with Lo
212212
maxDepth: Int,
213213
nodeSplitStats: (Split, InformationGainStats),
214214
parentImpurities: Array[Double]): Unit = {
215-
if (level >= maxDepth)
215+
if (level >= maxDepth) {
216216
return
217+
}
217218
// 0 corresponds to the left child node and 1 corresponds to the right child node.
218219
var i = 0
219220
while (i <= 1) {

0 commit comments

Comments
 (0)