Refactoring per review

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

View File

@ -86,10 +86,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
} }
} }