Skip to content

Commit

Permalink
Resolve match may not be exhaustive warning
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfurey committed Jan 8, 2025
1 parent 4a41ba5 commit ba50498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/model/editions/client/EditionsClientCollection.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit ba50498

Please sign in to comment.