Skip to content

Commit d3b3455

Browse files
committed
Tidying
1 parent 8f047ea commit d3b3455

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dom/src/main/scala/org/http4s/dom/FetchClient.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package org.http4s
1818
package dom
1919

20-
import cats.data.OptionT
2120
import cats.effect.Async
2221
import cats.effect.Poll
2322
import cats.effect.Resource
@@ -115,7 +114,7 @@ private[dom] object FetchClient {
115114
}
116115
} {
117116
case (r, exitCase) =>
118-
OptionT.fromOption(Option(r.body)).foreachF(cancelReadableStream(_, exitCase))
117+
Option(r.body).traverse_(cancelReadableStream(_, exitCase))
119118
}
120119
.evalMap(fromDomResponse[F])
121120

0 commit comments

Comments
 (0)