From 27fc4e57e3b409612579a75f12e96cbb036894d4 Mon Sep 17 00:00:00 2001 From: Ethan Atkins Date: Mon, 10 Jun 2019 15:40:05 -0700 Subject: [PATCH] Add missing match case There was an incomplete pattern match that assumed that the jars in the scala provider included one with the name "scala-library.jar". In practice, I think this is always true, but it's safer to have a fallback case and it also removes the compiler warning. --- main-command/src/main/scala/sbt/State.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/main-command/src/main/scala/sbt/State.scala b/main-command/src/main/scala/sbt/State.scala index f8a88a7c6..62a0920a1 100644 --- a/main-command/src/main/scala/sbt/State.scala +++ b/main-command/src/main/scala/sbt/State.scala @@ -365,6 +365,7 @@ object State { case _ => } } + case _ => } } s.put(BasicKeys.extendedClassLoaderCache, cache)