Skip to content

Commit 00e9cc5

Browse files
committed
more style
1 parent 3377e61 commit 00e9cc5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

core/src/main/scala/org/apache/spark/status/api/v1/AllRDDResource.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ object AllRDDResource {
8383
None
8484
}
8585
val partitions = if (includeDetails) {
86-
Some(blocks.map { case(id, block, locations) =>
86+
Some(blocks.map { case (id, block, locations) =>
8787
new RDDPartitionInfo(
8888
blockName = id.name,
8989
storageLevel = block.storageLevel.description,

core/src/main/scala/org/apache/spark/status/api/v1/AllStagesResource.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ object AllStagesResource {
6666
): StageData = {
6767

6868
val taskData = if(includeDetails) {
69-
Some(stageUiData.taskData.map { case(k,v) => k -> convertTaskData(v) } )
69+
Some(stageUiData.taskData.map { case (k, v) => k -> convertTaskData(v) } )
7070
} else {
7171
None
7272
}
7373
val executorSummary = if(includeDetails) {
74-
Some(stageUiData.executorSummary.map { case(k,summary) =>
74+
Some(stageUiData.executorSummary.map { case (k, summary) =>
7575
k -> new ExecutorStageSummary(
7676
taskTime = summary.taskTime,
7777
failedTasks = summary.failedTasks,

core/src/main/scala/org/apache/spark/status/api/v1/OneStageResource.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class OneStageResource(uiRoot: UIRoot) {
3737
matched.map { status -> _ }
3838
}.headOption
3939
oneStage match {
40-
case Some((status,stageInfo)) =>
40+
case Some((status, stageInfo)) =>
4141
val stageUiData = listener.synchronized {
4242
listener.stageIdToData.get((stageInfo.stageId, stageInfo.attemptId)).
4343
getOrElse(throw new SparkException("failed to get full stage data for stage: " +

core/src/test/scala/org/apache/spark/deploy/history/HistoryServerSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ class HistoryServerSuite extends FunSuite with BeforeAndAfter with Matchers with
8282

8383
//run a bunch of characterization tests -- just verify the behavior is the same as what is saved in the test
8484
// resource folder
85-
cases.foreach{case(name, path) =>
86-
test(name){
85+
cases.foreach { case (name, path) =>
86+
test(name) {
8787
val (code, jsonOpt, errOpt) = getContentAndCode(path)
8888
code should be (HttpServletResponse.SC_OK)
8989
jsonOpt should be ('defined)

0 commit comments

Comments
 (0)