Skip to content

Commit

Permalink
Update modules/effect/src/main/scala/cats/xml/effect/XmlLoader.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
geirolz authored Oct 24, 2024
1 parent 867e8a1 commit 2fa5502
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object XmlLoader extends XmlLoaderInstances {
override def loadInputStreamResource(inputStream: => InputStream): Resource[F, XmlNode] =
Resource
.fromAutoCloseable(F.blocking(inputStream))
.evalMap(is => F.defer(parser.parseInputStream(is)))
.evalMap(parser.parseInputStream(_))
}
}
}
Expand Down

0 comments on commit 2fa5502

Please sign in to comment.