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 8f047ea commit d3b3455Copy full SHA for d3b3455
dom/src/main/scala/org/http4s/dom/FetchClient.scala
@@ -17,7 +17,6 @@
17
package org.http4s
18
package dom
19
20
-import cats.data.OptionT
21
import cats.effect.Async
22
import cats.effect.Poll
23
import cats.effect.Resource
@@ -115,7 +114,7 @@ private[dom] object FetchClient {
115
114
}
116
} {
117
case (r, exitCase) =>
118
- OptionT.fromOption(Option(r.body)).foreachF(cancelReadableStream(_, exitCase))
+ Option(r.body).traverse_(cancelReadableStream(_, exitCase))
119
120
.evalMap(fromDomResponse[F])
121
0 commit comments