From 0f0434e5432001d14837b1182ea663d7cd6b06da Mon Sep 17 00:00:00 2001 From: TomTriple Date: Wed, 18 Oct 2023 10:13:41 +0200 Subject: [PATCH] Update zio-http/src/main/scala/zio/http/Flash.scala Co-authored-by: Jules Ivanic --- zio-http/src/main/scala/zio/http/Flash.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {