Skip to content

Commit

Permalink
Scala3 missing parentheses added
Browse files Browse the repository at this point in the history
  • Loading branch information
gregor-rayman committed Sep 10, 2024
1 parent e851925 commit 4d1f83d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ object JsonCodec {
},
err =>
if (stringBuilder.isEmpty) ZChannel.refailCause(err)
else ZChannel.write(Chunk.single(stringBuilder.result)) *> ZChannel.refailCause(err),
else ZChannel.write(Chunk.single(stringBuilder.result())) *> ZChannel.refailCause(err),
done =>
if (stringBuilder.isEmpty) ZChannel.succeed(done)
else ZChannel.write(Chunk.single(stringBuilder.result)) *> ZChannel.succeed(done)
else ZChannel.write(Chunk.single(stringBuilder.result())) *> ZChannel.succeed(done)
)

ZPipeline.fromChannel(loop)
Expand Down

0 comments on commit 4d1f83d

Please sign in to comment.