mirror of https://github.com/sbt/sbt.git
[2.x] refactor: Fix Aggregation.printSettings pattern matching (#8790)
This commit is contained in:
parent
fe1caa8ddf
commit
808dfefa59
|
|
@ -52,8 +52,8 @@ object Aggregation {
|
||||||
display: Show[ScopedKey[?]]
|
display: Show[ScopedKey[?]]
|
||||||
): Unit =
|
): Unit =
|
||||||
xs match {
|
xs match {
|
||||||
case KeyValue(_, x: Seq[?]) :: Nil => print(x.mkString("* ", "\n* ", ""))
|
case Seq(KeyValue(_, x: Seq[?])) => print(x.mkString("* ", "\n* ", ""))
|
||||||
case KeyValue(_, x) :: Nil => print(x.toString)
|
case Seq(KeyValue(_, x)) => print(x.toString)
|
||||||
case _ =>
|
case _ =>
|
||||||
xs foreach { kv =>
|
xs foreach { kv =>
|
||||||
print(display.show(kv.key))
|
print(display.show(kv.key))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue