Skip to content

Commit

Permalink
Update zio-http/src/main/scala/zio/http/Flash.scala
Browse files Browse the repository at this point in the history
Co-authored-by: Jules Ivanic <[email protected]>
  • Loading branch information
TomTriple and guizmaii authored Oct 18, 2023
1 parent 276d354 commit 1f9fcf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zio-http/src/main/scala/zio/http/Flash.scala
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ object Flash {
case FlatMap(self, f) =>
loop(self, map) match {
case Right(value) => loop(f(value), map)
case Left(e) => Left(e)
case l @ Left(_) => l.asInstanceOf[Either[Throwable, A]]
}
case Succeed(a) => Right(a)
case Fail(message) => Left(new Throwable(message))
Expand Down

0 comments on commit 1f9fcf0

Please sign in to comment.