Skip to content

Commit

Permalink
Fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
lenguyenthanh committed Sep 8, 2024
1 parent 40cb12a commit 840514d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ sealed abstract class Resource[F[_], +A] extends Serializable {
Resource.applyFull[F, Either[Throwable, A]] { poll =>
poll(allocatedCase).attempt.map {
case Right((a, r)) => (a.asRight[Throwable], r)
case error => (error, _ => F.unit)
case error => (error.asInstanceOf[Either[Throwable, A]], _ => F.unit)
}
}

Expand Down

0 comments on commit 840514d

Please sign in to comment.