We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25b6480 commit 85bdae7Copy full SHA for 85bdae7
requests/src/main/scala/ackcord/OptFuture.scala
@@ -118,7 +118,7 @@ object OptFuture {
118
OptFuture(fa.value.recover(pf.andThen(Some(_))))
119
120
override def recoverWith[A](fa: OptFuture[A])(pf: PartialFunction[Throwable, OptFuture[A]]): OptFuture[A] =
121
- OptFuture(fa.value.recoverWith(pf(_).value))
+ OptFuture(fa.value.recoverWith(pf.andThen(_.value)))
122
123
override def redeemWith[A, B](
124
fa: OptFuture[A]
0 commit comments