Skip to content

Commit

Permalink
make the code more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
liguoqiang committed Feb 28, 2014
1 parent 6bb725e commit 3a65903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/SparkContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ class SparkContext(
allowLocal: Boolean,
resultHandler: (Int, U) => Unit) {
val rddPartitions = rdd.partitions.map(_.index)
partitions.foreach(p =>require(rddPartitions.contains(p), "partition index out of range: " +p))
require(partitions.forall(rddPartitions.contains(_)), "partition index out of range")
val callSite = getCallSite
val cleanedFunc = clean(func)
logInfo("Starting job: " + callSite)
Expand Down

0 comments on commit 3a65903

Please sign in to comment.