From a8777bb41ab705cdd6f8b9bb3a30b36998fa5a73 Mon Sep 17 00:00:00 2001 From: Leonid Stashevsky Date: Fri, 10 Jan 2025 16:12:24 +0100 Subject: [PATCH] Update ktor-io/common/src/io/ktor/utils/io/SinkByteWriteChannel.kt Co-authored-by: Jake Wharton --- ktor-io/common/src/io/ktor/utils/io/SinkByteWriteChannel.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ktor-io/common/src/io/ktor/utils/io/SinkByteWriteChannel.kt b/ktor-io/common/src/io/ktor/utils/io/SinkByteWriteChannel.kt index 81358b6f0d..528b63fd0a 100644 --- a/ktor-io/common/src/io/ktor/utils/io/SinkByteWriteChannel.kt +++ b/ktor-io/common/src/io/ktor/utils/io/SinkByteWriteChannel.kt @@ -23,8 +23,7 @@ import kotlinx.io.* * * Please note that the channel will be buffered even if the sync is not. */ -public fun RawSink.asByteWriteChannel(): ByteWriteChannel = SinkByteWriteChannel(this).apply { -} +public fun RawSink.asByteWriteChannel(): ByteWriteChannel = SinkByteWriteChannel(this) private suspend fun x() { val rawSink: RawSink = Buffer()