Skip to content

Commit

Permalink
comp fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Pritzlaff committed Jan 3, 2022
1 parent 7ffebcf commit 8054688
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/scala/args4c/RichConfigOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ trait RichConfigOps extends Dynamic with LowPriorityArgs4cImplicits:
val configs: Array[Config] = args.map {
case KeyValue(k, v) if !isValidKey(k) =>
val safeKey = ConfigUtil.quoteString(k)
asConfig(safeKey, v)
RichConfig.asConfig(safeKey, v)
case KeyValue(k, v) if isSimpleList(k) =>
asConfig(k, java.util.Arrays.asList(v.split(",", -1): _*))
RichConfig.asConfig(k, java.util.Arrays.asList(v.split(",", -1): _*))
case KeyValue(k, v) if isObjectList(k) =>
sys.error(s"Path '$k' tried to override an object list with '$v'")
case KeyValue(k, v) => asConfig(k, v)
case KeyValue(k, v) => RichConfig.asConfig(k, v)
case FilePathConfig(c) => c
case UrlPathConfig(c) => c
case other =>
Expand Down Expand Up @@ -233,7 +233,7 @@ trait RichConfigOps extends Dynamic with LowPriorityArgs4cImplicits:
val key = e.getKey
e.getValue match
case list: ConfigList =>
import scala.collection.JavaConverters._
import scala.jdk.CollectionConverters.*

val all = list.listIterator().asScala.zipWithIndex

Expand Down

0 comments on commit 8054688

Please sign in to comment.