From a1ceac3d2373a18f43cb78e7c2cde81b1550b486 Mon Sep 17 00:00:00 2001 From: Bruce Hamilton Date: Mon, 16 Dec 2024 16:50:33 +0100 Subject: [PATCH] Fix formatting --- .../ktor-client-encoding/common/src/ContentEncoding.kt | 6 ++++-- ktor-utils/jvm/test/io/ktor/tests/utils/FileChannelTest.kt | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ktor-client/ktor-client-plugins/ktor-client-encoding/common/src/ContentEncoding.kt b/ktor-client/ktor-client-plugins/ktor-client-encoding/common/src/ContentEncoding.kt index be270150f3..322f9e457e 100644 --- a/ktor-client/ktor-client-plugins/ktor-client-encoding/common/src/ContentEncoding.kt +++ b/ktor-client/ktor-client-plugins/ktor-client-encoding/common/src/ContentEncoding.kt @@ -116,7 +116,8 @@ public val ContentEncoding: ClientPlugin = createClientPl val encodings = response.headers[HttpHeaders.ContentEncoding]?.split(",")?.map { it.trim().lowercase() } ?: run { LOGGER.trace( - "Empty or no Content-Encoding header in response. " + "Skipping ContentEncoding for ${response.call.request.url}" + "Empty or no Content-Encoding header in response. " + + "Skipping ContentEncoding for ${response.call.request.url}" ) return response } @@ -136,7 +137,8 @@ public val ContentEncoding: ClientPlugin = createClientPl if (name.equals( HttpHeaders.ContentEncoding, ignoreCase = true - ) || name.equals(HttpHeaders.ContentLength, ignoreCase = true) + ) || + name.equals(HttpHeaders.ContentLength, ignoreCase = true) ) { return@forEach } diff --git a/ktor-utils/jvm/test/io/ktor/tests/utils/FileChannelTest.kt b/ktor-utils/jvm/test/io/ktor/tests/utils/FileChannelTest.kt index b4ba0ca55c..bcad848abe 100644 --- a/ktor-utils/jvm/test/io/ktor/tests/utils/FileChannelTest.kt +++ b/ktor-utils/jvm/test/io/ktor/tests/utils/FileChannelTest.kt @@ -129,5 +129,4 @@ class FileChannelTest { assertEquals(5, file.length()) assertEquals("Hello", file.readText()) } - }