mirror of https://github.com/sbt/sbt.git
Refactoring per review
This commit is contained in:
parent
1b79cb85b6
commit
2de32ca723
|
|
@ -87,10 +87,7 @@ private[sbt] object TemplateCommandUtil {
|
||||||
else {
|
else {
|
||||||
IO.createDirectory(templateDirectory)
|
IO.createDirectory(templateDirectory)
|
||||||
val m = updateUtil.getModule(info.module.copy(configurations = Some("component")), ivyScala)
|
val m = updateUtil.getModule(info.module.copy(configurations = Some("component")), ivyScala)
|
||||||
val xs = updateUtil.update(m, templateDirectory)(_ => true) match {
|
val xs = updateUtil.update(m, templateDirectory)(_ => true).toList.flatten
|
||||||
case Some(xs) => xs.toList
|
|
||||||
case None => Nil
|
|
||||||
}
|
|
||||||
xs
|
xs
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue