From dc9b85a020e981365b062ff8171e04ea37c5a929 Mon Sep 17 00:00:00 2001 From: fwang12 Date: Sat, 17 Apr 2021 14:51:44 +0800 Subject: [PATCH] [KYUUBI #539] Remove duplicated file separator ### _Why are the changes needed?_ Remove duplicated file separator. ### _How was this patch tested?_ Existing UT. Closes #539 from turboFei/remove_dup_separator. Closes #539 42383ba [fwang12] Remove duplicated file separator Authored-by: fwang12 Signed-off-by: fwang12 --- kyuubi-common/src/main/scala/org/apache/kyuubi/Utils.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kyuubi-common/src/main/scala/org/apache/kyuubi/Utils.scala b/kyuubi-common/src/main/scala/org/apache/kyuubi/Utils.scala index 20da0679c..a78166120 100644 --- a/kyuubi-common/src/main/scala/org/apache/kyuubi/Utils.scala +++ b/kyuubi-common/src/main/scala/org/apache/kyuubi/Utils.scala @@ -44,7 +44,7 @@ private[kyuubi] object Utils extends Logging { def getDefaultPropertiesFile(env: Map[String, String] = sys.env): Option[File] = { env.get(KYUUBI_CONF_DIR) - .orElse(env.get(KYUUBI_HOME).map(_ + File.separator + "/conf")) + .orElse(env.get(KYUUBI_HOME).map(_ + File.separator + "conf")) .map( d => new File(d + File.separator + KYUUBI_CONF_FILE_NAME)) .filter(_.exists()) .orElse {