We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d09ebf commit 81f5475Copy full SHA for 81f5475
project/settings.sc
@@ -866,7 +866,7 @@ trait ScalaCliScalafixModule extends ScalafixModule with ScalaCliCompile {
866
else {
867
val len = l.length
868
val idx = l.indexWhere(_.startsWith("-sourceroot"))
869
- if (idx < len - 1) l.take(idx) ++ l.drop(idx + 2)
+ if (idx >= 0 && idx < len - 1) l.take(idx) ++ l.drop(idx + 2)
870
else l
871
}
872
0 commit comments