[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 <fwang12@ebay.com>
Signed-off-by: fwang12 <fwang12@ebay.com>
This commit is contained in:
fwang12 2021-04-17 14:51:44 +08:00
parent 8fb6ffdf84
commit dc9b85a020

View File

@ -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 {