vicennial commented on code in PR #40368:
URL: https://github.com/apache/spark/pull/40368#discussion_r1136697895


##########
core/src/main/scala/org/apache/spark/SparkContext.scala:
##########
@@ -465,9 +473,24 @@ class SparkContext(config: SparkConf) extends Logging {
     SparkEnv.set(_env)
 
     // If running the REPL, register the repl's output dir with the file 
server.
-    _conf.getOption("spark.repl.class.outputDir").foreach { path =>
-      val replUri = _env.rpcEnv.fileServer.addDirectory("/classes", new 
File(path))
-      _conf.set("spark.repl.class.uri", replUri)
+    _conf.getOption("spark.repl.class.outputDir") match {

Review Comment:
   `DRY`-ed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to