From 4d1f83d4f66fe5045e4906de16999a273ca22ba8 Mon Sep 17 00:00:00 2001 From: Gregor Rayman Date: Tue, 10 Sep 2024 06:36:44 +0200 Subject: [PATCH] Scala3 missing parentheses added --- .../shared/src/main/scala/zio/schema/codec/JsonCodec.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zio-schema-json/shared/src/main/scala/zio/schema/codec/JsonCodec.scala b/zio-schema-json/shared/src/main/scala/zio/schema/codec/JsonCodec.scala index b53716229..7107211b9 100644 --- a/zio-schema-json/shared/src/main/scala/zio/schema/codec/JsonCodec.scala +++ b/zio-schema-json/shared/src/main/scala/zio/schema/codec/JsonCodec.scala @@ -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)