diff options
author | Matei Zaharia <matei@eecs.berkeley.edu> | 2013-06-07 22:40:44 -0700 |
---|---|---|
committer | Matei Zaharia <matei@eecs.berkeley.edu> | 2013-06-07 22:40:44 -0700 |
commit | c9ca0a4a588b4c7dc553b155336ae5b95aa9ddd4 (patch) | |
tree | 156f6ceb18c746f88cf509ccdea8828f2db06558 | |
parent | 1ae60bcb3673118c9838ecc6afac1d015fe79def (diff) | |
download | spark-c9ca0a4a588b4c7dc553b155336ae5b95aa9ddd4.tar.gz spark-c9ca0a4a588b4c7dc553b155336ae5b95aa9ddd4.tar.bz2 spark-c9ca0a4a588b4c7dc553b155336ae5b95aa9ddd4.zip |
Small code style fix to SchedulingAlgorithm.scala
-rw-r--r-- | core/src/main/scala/spark/scheduler/cluster/SchedulingAlgorithm.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/main/scala/spark/scheduler/cluster/SchedulingAlgorithm.scala b/core/src/main/scala/spark/scheduler/cluster/SchedulingAlgorithm.scala index 13120edf63..e071917c00 100644 --- a/core/src/main/scala/spark/scheduler/cluster/SchedulingAlgorithm.scala +++ b/core/src/main/scala/spark/scheduler/cluster/SchedulingAlgorithm.scala @@ -53,13 +53,12 @@ private[spark] class FairSchedulingAlgorithm extends SchedulingAlgorithm { } if (compare < 0) { - res = true + return true } else if (compare > 0) { - res = false + return false } else { return s1.name < s2.name } - return res } } |