Skip to content

Commit ec62e90

Browse files
committed
use propOrElse in javaBootClassPath
1 parent d911336 commit ec62e90

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: compiler/src/dotty/tools/dotc/config/PathResolver.scala

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ object PathResolver {
5353
def classPathEnv: String = envOrElse("CLASSPATH", "")
5454
def sourcePathEnv: String = envOrElse("SOURCEPATH", "")
5555

56-
//using propOrNone/getOrElse instead of propOrElse so that searchForBootClasspath is lazy evaluated
57-
def javaBootClassPath: String = propOrNone("sun.boot.class.path") getOrElse searchForBootClasspath
56+
def javaBootClassPath: String = propOrElse("sun.boot.class.path", searchForBootClasspath)
5857

5958
def javaExtDirs: String = propOrEmpty("java.ext.dirs")
6059
def scalaHome: String = propOrEmpty("scala.home")

0 commit comments

Comments
 (0)