From ba504988a7764ac3e3552252198d0b15d6631372 Mon Sep 17 00:00:00 2001 From: David Furey Date: Wed, 8 Jan 2025 15:55:59 +0000 Subject: [PATCH] Resolve match may not be exhaustive warning --- app/model/editions/client/EditionsClientCollection.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/model/editions/client/EditionsClientCollection.scala b/app/model/editions/client/EditionsClientCollection.scala index 3cf0b726d7..022e5ccd0b 100644 --- a/app/model/editions/client/EditionsClientCollection.scala +++ b/app/model/editions/client/EditionsClientCollection.scala @@ -109,14 +109,14 @@ object EditionsSupportingClientCard { def toFeastCollectionItem(supportingCard: EditionsSupportingClientCard) = supportingCard.cardType match { - case Some(CardType.Recipe) => - EditionsRecipe(supportingCard.id, supportingCard.frontPublicationDate) case Some(CardType.Chef) => EditionsChef( supportingCard.id, supportingCard.frontPublicationDate, supportingCard.meta.map(_.toChefMetadata) ) + case _ => + EditionsRecipe(supportingCard.id, supportingCard.frontPublicationDate) } }