Skip to content

Commit

Permalink
Applied Scalafix rule(s) replace:fs2.text.utf8Decode/fs2.text.utf8.de…
Browse files Browse the repository at this point in the history
…code, replace:fs2.text.utf8DecodeC/fs2.text.utf8.decodeC, replace:fs2.text.utf8Encode/fs2.text.utf8.encode, replace:fs2.text.utf8EncodeC/fs2.text.utf8.encodeC
  • Loading branch information
scala-steward committed Jan 22, 2024
1 parent 8e22d03 commit b9f6e6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/test/scala/dissonance/TestUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import java.nio.file.Path

import cats.effect.IO
import fs2.io.file.Files
import fs2.text

object TestUtils {
def readFileFromResource(path: String): fs2.Stream[IO, String] = {
Files[IO]
.readAll(Path.of(getClass.getResource(path).toURI), 4096)
.through(fs2.text.utf8Decode)
.through(text.utf8.decode)
.through(fs2.text.lines)
.dropLastIf(_.isEmpty)
}
Expand Down

0 comments on commit b9f6e6f

Please sign in to comment.