From fbbc7857816aae5ce0c5d900783485f938f28447 Mon Sep 17 00:00:00 2001 From: Sephiroth-Lin Date: Tue, 10 Feb 2015 20:27:04 +0800 Subject: [PATCH] using an interpolated string --- core/src/main/scala/org/apache/spark/HttpFileServer.scala | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/src/main/scala/org/apache/spark/HttpFileServer.scala b/core/src/main/scala/org/apache/spark/HttpFileServer.scala index 14721167ea7f1..7e706bcc42f04 100644 --- a/core/src/main/scala/org/apache/spark/HttpFileServer.scala +++ b/core/src/main/scala/org/apache/spark/HttpFileServer.scala @@ -56,10 +56,8 @@ private[spark] class HttpFileServer( try { Utils.deleteRecursively(baseDir) } catch { - case e: Exception => { - val path = baseDir.getAbsolutePath - logWarning(s"Exception while deleting Spark temp dir: $path", e) - } + case e: Exception => + logWarning(s"Exception while deleting Spark temp dir: ${baseDir.getAbsolutePath}", e) } }