Skip to content

Commit

Permalink
remove unnecessary toSeq
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxr committed Mar 15, 2014
1 parent 9916202 commit db6cb30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/rdd/SlidingRDD.scala
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class SlidingRDD[T: ClassTag](@transient val parent: RDD[T], val windowSize: Int
tail ++= nextHeads(j)
j += 1
}
partitions += new SlidingRDDPartition[T](partitionIndex, parentPartitions(i), tail.toSeq)
partitions += new SlidingRDDPartition[T](partitionIndex, parentPartitions(i), tail)
partitionIndex += 1
// Skip appended heads.
i = j
Expand Down

0 comments on commit db6cb30

Please sign in to comment.