Skip to content

Commit 8d6fe78

Browse files
committed
Replace filter+headOption with find
1 parent 3f9ab5e commit 8d6fe78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ lazy val xml = crossProject(JSPlatform, JVMPlatform)
8484
) ++ {
8585
// http://stackoverflow.com/questions/16934488
8686
Option(System.getProperty("sun.boot.class.path")).flatMap { classPath =>
87-
classPath.split(java.io.File.pathSeparator).filter(_.endsWith(java.io.File.separator + "rt.jar")).headOption
87+
classPath.split(java.io.File.pathSeparator).find(_.endsWith(java.io.File.separator + "rt.jar"))
8888
}.map { jarPath =>
8989
Map(
9090
file(jarPath)

0 commit comments

Comments
 (0)