Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Jan 24, 2025
1 parent 14f165b commit 354e662
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ class HttpClientFs2Backend[F[_]: Async] private (

override protected def ensureOnAbnormal[T](effect: F[T])(finalizer: => F[Unit]): F[T] =
Async[F].guaranteeCase(effect) { outcome =>
if (outcome.isSuccess) Async[F].unit else Async[F].onError(finalizer)(t => Async[F].delay(t.printStackTrace()))
if (outcome.isSuccess) Async[F].unit
else Async[F].onError(finalizer) { case t => Async[F].delay(t.printStackTrace()) }
}

override protected def emptyBody(): Stream[F, Byte] = Stream.empty
Expand Down

0 comments on commit 354e662

Please sign in to comment.