Skip to content

Commit 5b43c65

Browse files
Use List(...) syntax
1 parent aa98bac commit 5b43c65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

project/Build.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ object Build {
519519

520520
val fullArgs = args.span(_ != "-classpath") match {
521521
case (beforeCp, "-classpath" :: cp :: rest) => beforeCp ++ List("-classpath", cp + ":" + dottyLib) ++ rest
522-
case (beforeCp, _) => beforeCp ++ ("-classpath" :: dottyLib :: Nil)
522+
case (beforeCp, _) => beforeCp ++ List("-classpath", dottyLib)
523523
}
524524

525525
(runMain in Compile).toTask(
@@ -534,7 +534,7 @@ object Build {
534534

535535
val fullArgs = args.span(_ != "-classpath") match {
536536
case (beforeCp, "-classpath" :: cp :: rest) => beforeCp ++ List("-classpath", cp + ":" + dottyLib) ++ rest
537-
case (beforeCp, _) => beforeCp ++ ("-classpath" :: dottyLib :: Nil)
537+
case (beforeCp, _) => beforeCp ++ List("-classpath", dottyLib)
538538
}
539539

540540
(runMain in Compile).toTask(

0 commit comments

Comments
 (0)