Skip to content

Commit

Permalink
Remove redundant .toList call on a List
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Stucki <[email protected]>
  • Loading branch information
lolgab and nicolasstucki committed Sep 19, 2023
1 parent c39d260 commit 0c04c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/MainGenericRunner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ object MainGenericRunner {
case (o @ javaOption(striped)) :: tail =>
processArgs(tail, settings.withJavaArgs(striped).withScalaArgs(o))
case (o @ scalaOption(_*)) :: tail =>
val remainingArgs = (CommandLineParser.expandArg(o) ++ tail).toList
val remainingArgs = CommandLineParser.expandArg(o) ++ tail
processArgs(remainingArgs, settings)
case (o @ colorOption(_*)) :: tail =>
processArgs(tail, settings.withScalaArgs(o))
Expand Down

0 comments on commit 0c04c2e

Please sign in to comment.