Skip to content

Commit b3e3999

Browse files
authored
Merge pull request #3384 from nerush/patch-1
Remove redundant conversion of settings to array
2 parents 1ee4d1e + b30aed0 commit b3e3999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/repl/ReplDriver.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class ReplDriver(settings: Array[String],
8989
/** Create a fresh and initialized context with IDE mode enabled */
9090
private[this] def initialCtx = {
9191
val rootCtx = initCtx.fresh.addMode(Mode.ReadPositions).addMode(Mode.Interactive)
92-
val ictx = setup(settings.toArray, rootCtx)._2.fresh
92+
val ictx = setup(settings, rootCtx)._2.fresh
9393
ictx.base.initialize()(ictx)
9494
ictx
9595
}

0 commit comments

Comments
 (0)