Skip to content

Commit

Permalink
refactor: delete unnecessary val
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Jul 11, 2024
1 parent 2af3db7 commit b441f9e
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,9 @@ class ContentService[F[_]: Monad](
maybeContentSerializing <- request.series match {
case None => IO(None)
case Some(seriesName) =>
seriesService.findByName(seriesName).flatMap { x =>
x match
case None => IO.raiseError(UnprocessableEntity(detail = s"series not found: ${seriesName}"))
case Some(s) => IO(Option(ContentSerializing(s.id, contentId)))
seriesService.findByName(seriesName).flatMap {
case None => IO.raiseError(UnprocessableEntity(detail = s"series not found: ${seriesName}"))
case Some(s) => IO(Option(ContentSerializing(s.id, contentId)))
}
}
createdContent <- this.create(
Expand Down

0 comments on commit b441f9e

Please sign in to comment.