Ugh. trying to make codacy happy

This commit is contained in:
Eugene Yokota 2016-06-12 03:34:22 -04:00
parent ae58cf342b
commit 307c725cd1
1 changed files with 1 additions and 2 deletions

View File

@ -26,8 +26,7 @@ class MergeDescriptorSpec extends BaseIvySpecification {
m.withModule(log) {
case (ivy, md, _) =>
val deps = md.getDependencies
assert(deps.size == 1)
deps.head match {
deps.headOption.getOrElse(sys.error("Dependencies not found")) match {
case dd @ MergedDescriptors(dd0, dd1) =>
val arts = dd.getAllDependencyArtifacts
val a0: DependencyArtifactDescriptor = arts.toList(0)