From dd99fe8e9b4ece85d84a204c779de5ce95829ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0est=C3=A1k=20V=C3=ADt?= Date: Wed, 9 Mar 2016 10:52:01 +0100 Subject: [PATCH] Removed a warning --- app/models/odc/SoftwareVulnerability.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/odc/SoftwareVulnerability.scala b/app/models/odc/SoftwareVulnerability.scala index 9c0aefc..94cb14b 100644 --- a/app/models/odc/SoftwareVulnerability.scala +++ b/app/models/odc/SoftwareVulnerability.scala @@ -13,6 +13,7 @@ final case class SoftwareVulnerability (vulnerabilityId: Int, cpeEntryId: Int, i def includesAllPreviousVersions: Boolean = includesAllPreviousVersionsRaw match { case Some("1") => true case None => false + case _ => sys.error("Unexpected value from ODC database") } }