Skip to content

Commit deb6a4c

Browse files
committed
review commit
1 parent 91da0bb commit deb6a4c

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

core/src/main/scala/org/apache/spark/deploy/worker/CommandUtils.scala

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,7 @@ object CommandUtils extends Logging {
4848
def buildJavaOpts(command: Command, memory: Int, sparkHome: String): Seq[String] = {
4949
val memoryOpts = Seq(s"-Xms${memory}M", s"-Xmx${memory}M")
5050
// Note, this will coalesce multiple options into a single command component
51-
val extraOpts = command.extraJavaOptions match {
52-
case Some(opts) =>
53-
Utils.splitCommandString(opts)
54-
case _ =>
55-
Seq()
56-
}
51+
val extraOpts = command.extraJavaOptions.map(Utils.splitCommandString).getOrElse(Seq())
5752

5853
val libraryOpts =
5954
if (command.libraryPathEntries.size > 0) {

0 commit comments

Comments
 (0)