From 158ede9ab1dcba9c21368c7e40a66825bc0ca543 Mon Sep 17 00:00:00 2001 From: Alexandre Archambault Date: Tue, 2 Jun 2020 15:26:52 +0200 Subject: [PATCH] nit --- .../src/main/scala/lmcoursier/internal/SbtUpdateReport.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/lm-coursier/src/main/scala/lmcoursier/internal/SbtUpdateReport.scala b/modules/lm-coursier/src/main/scala/lmcoursier/internal/SbtUpdateReport.scala index 17a6e52d8..e3ba3ae0a 100644 --- a/modules/lm-coursier/src/main/scala/lmcoursier/internal/SbtUpdateReport.scala +++ b/modules/lm-coursier/src/main/scala/lmcoursier/internal/SbtUpdateReport.scala @@ -349,11 +349,10 @@ private[internal] object SbtUpdateReport { // likely misses some details (transitive, exclusions, …) val dep = Dependency(c.module, c.wantedVersion) val dependee = Dependency(c.dependeeModule, c.dependeeVersion) - val dependeeProj = subRes.projectCache - .get((c.dependeeModule, c.dependeeVersion)) match { + val dependeeProj = subRes.projectCache.get((c.dependeeModule, c.dependeeVersion)) match { case Some((_, p)) => ProjectInfo(p.version, p.configurations.keys.toVector.map(c => ConfigRef(c.value)), p.properties) - case _ => + case None => // should not happen ProjectInfo(c.dependeeVersion, Vector.empty, Vector.empty) }