Skip to content

Commit 85bdae7

Browse files
committed
Fix 2.12 compilation
1 parent 25b6480 commit 85bdae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

requests/src/main/scala/ackcord/OptFuture.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ object OptFuture {
118118
OptFuture(fa.value.recover(pf.andThen(Some(_))))
119119

120120
override def recoverWith[A](fa: OptFuture[A])(pf: PartialFunction[Throwable, OptFuture[A]]): OptFuture[A] =
121-
OptFuture(fa.value.recoverWith(pf(_).value))
121+
OptFuture(fa.value.recoverWith(pf.andThen(_.value)))
122122

123123
override def redeemWith[A, B](
124124
fa: OptFuture[A]

0 commit comments

Comments
 (0)