diff --git a/zio-http/src/main/scala/zio/http/Flash.scala b/zio-http/src/main/scala/zio/http/Flash.scala index f23750ab82..449140351b 100644 --- a/zio-http/src/main/scala/zio/http/Flash.scala +++ b/zio-http/src/main/scala/zio/http/Flash.scala @@ -358,7 +358,7 @@ object Flash { case OrElse(self, that) => (loop(self, map) match { case Left(_) => loop(that, map) - case Right(value) => Right(value) + case r @ Right(_) => r.asInstanceOf[Either[Throwable, A]] }).asInstanceOf[Either[Throwable, A]] case FlatMap(self, f) => loop(self, map) match {