Skip to content

Commit 4d88496

Browse files
committed
Update
1 parent c93f585 commit 4d88496

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,7 @@ private[spark] object SparkSubmitUtils {
13731373
exclusions: Seq[String] = Nil,
13741374
isTest: Boolean = false): Seq[String] = {
13751375
if (coordinates == null || coordinates.trim.isEmpty) {
1376-
Seq.empty[String]
1376+
Nil
13771377
} else {
13781378
val sysOut = System.out
13791379
// Default configuration name for ivy

core/src/test/scala/org/apache/spark/deploy/SparkSubmitUtilsSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class SparkSubmitUtilsSuite extends SparkFunSuite with BeforeAndAfterAll {
133133
SparkSubmitUtils.buildIvySettings(Option(repo), Some(tempIvyPath)),
134134
transitive = true,
135135
isTest = true)
136-
assert(jarPath.forall(_.indexOf(tempIvyPath) >=0), "should use non-default ivy path")
136+
assert(jarPath.forall(_.indexOf(tempIvyPath) >= 0), "should use non-default ivy path")
137137
}
138138
}
139139

@@ -172,7 +172,7 @@ class SparkSubmitUtilsSuite extends SparkFunSuite with BeforeAndAfterAll {
172172
SparkSubmitUtils.buildIvySettings(None, Some(tempIvyPath)),
173173
transitive = true,
174174
isTest = true)
175-
assert(jarPath.exists(_.indexOf("mylib") >=0), "should find artifact")
175+
assert(jarPath.exists(_.indexOf("mylib") >= 0), "should find artifact")
176176
assert(jarPath.forall(_.indexOf(tempIvyPath) >= 0), "should be in new ivy path")
177177
assert(jarPath.exists(_.indexOf("mydep") >= 0), "should find dependency")
178178
}

0 commit comments

Comments
 (0)