From c75d2a530f0cca1eba4657a4640a107604c742c0 Mon Sep 17 00:00:00 2001 From: Leonid Stashevsky Date: Tue, 6 Dec 2022 11:28:35 +0100 Subject: [PATCH] fixup! Fix style --- ktor-io/jvm/src/io/ktor/utils/io/ByteBufferChannel.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ktor-io/jvm/src/io/ktor/utils/io/ByteBufferChannel.kt b/ktor-io/jvm/src/io/ktor/utils/io/ByteBufferChannel.kt index b53f81c678..f2a9e2752a 100644 --- a/ktor-io/jvm/src/io/ktor/utils/io/ByteBufferChannel.kt +++ b/ktor-io/jvm/src/io/ktor/utils/io/ByteBufferChannel.kt @@ -1987,6 +1987,7 @@ internal open class ByteBufferChannel( } } } catch (_: EOFException) { + // Ignored by the contract of [ByteReadChannel.readUTF8LineTo] method } } @@ -1999,6 +2000,7 @@ internal open class ByteBufferChannel( } } } catch (_: EOFException) { + // Ignored by the contract of [ByteReadChannel.readUTF8LineTo] method } } @@ -2344,7 +2346,7 @@ internal open class ByteBufferChannel( } } } catch (_: EOFException) { - // ignore + // ignored by the contract of peekTo method } return bytesCopied.toLong()