Refactoring per review

This commit is contained in:
Eugene Yokota 2016-10-13 18:12:40 -04:00
parent 1b79cb85b6
commit 2de32ca723
1 changed files with 1 additions and 4 deletions

View File

@ -87,10 +87,7 @@ private[sbt] object TemplateCommandUtil {
else {
IO.createDirectory(templateDirectory)
val m = updateUtil.getModule(info.module.copy(configurations = Some("component")), ivyScala)
val xs = updateUtil.update(m, templateDirectory)(_ => true) match {
case Some(xs) => xs.toList
case None => Nil
}
val xs = updateUtil.update(m, templateDirectory)(_ => true).toList.flatten
xs
}
}