Skip to content

Commit a4e5e48

Browse files
committed
Use better combinators
1 parent b12f70c commit a4e5e48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/shared/src/test/scala/org/typelevel/toolkit/ScalaCliProcess.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ object ScalaCliProcess {
4242
process.exitValue,
4343
process.stdout.through(fs2.text.utf8.decode).compile.string,
4444
process.stderr.through(fs2.text.utf8.decode).compile.string
45-
).parFlatMapN {
46-
case (0, _, _) => IO.pure(success)
45+
).parMapN {
46+
case (0, _, _) => success
4747
case (exitCode, stdout, stdErr) =>
4848
val errorMessage: String = List(
4949
Option(stdout).filter(_.nonEmpty).map(s => s"[STDOUT]: $s"),
@@ -55,7 +55,7 @@ object ScalaCliProcess {
5555
case (summary, None) => summary
5656
}
5757

58-
IO.pure(failure(errorMessage))
58+
failure(errorMessage)
5959
}
6060
)
6161

0 commit comments

Comments
 (0)