Skip to content

Commit

Permalink
Fix 2.12 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Katrix committed Aug 22, 2020
1 parent 25b6480 commit 85bdae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requests/src/main/scala/ackcord/OptFuture.scala
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ object OptFuture {
OptFuture(fa.value.recover(pf.andThen(Some(_))))

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

override def redeemWith[A, B](
fa: OptFuture[A]
Expand Down

0 comments on commit 85bdae7

Please sign in to comment.