Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Ololoshechkin committed Oct 29, 2021
1 parent f8797f0 commit ce4871f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import io.ktor.util.date.*
import io.ktor.utils.io.*
import kotlinx.coroutines.*
import okhttp3.*
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.RequestBody.Companion.toRequestBody
import okhttp3.internal.http.HttpMethod
import okio.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public fun TLSConfigBuilder.addKeyStore(store: KeyStore, password: CharArray?, a
loop@ for (certAlias in aliases) {
val chain: Array<Certificate>? = store.getCertificateChain(certAlias)
checkNotNull(chain) { "Fail to get the certificate chain for this alias: $certAlias" }

val allX509 = chain.all { it is X509Certificate }
check(allX509) { "Fail to add key store $store. Only X509 certificate format supported." }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,6 @@ public class CORS(configuration: Configuration) {
}
}


/**
* Feature object for installation
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
package io.ktor.http.content

import io.ktor.http.*
import io.ktor.http.content.*
import io.ktor.util.cio.*
import io.ktor.utils.io.*
import io.ktor.utils.io.jvm.javaio.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class PartialContentTest {
}

test(File(basedir, localPath))
}
}.let { }

@Test
fun testCustomMaxRangeCountAccepted(): Unit = withRangeApplication(maxRangeCount = 10) {
Expand Down Expand Up @@ -332,7 +332,7 @@ class PartialContentTest {
block(parts)
}

private fun checkContentLength(result : TestApplicationCall) {
private fun checkContentLength(result: TestApplicationCall) {
assertEquals(
result.response.byteContent!!.size.toLong(),
result.response.headers[HttpHeaders.ContentLength]!!.toLong()
Expand Down
4 changes: 4 additions & 0 deletions ktor-test-dispatcher/macosArm64/src/TestMacosArm64.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright 2014-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")

package io.ktor.test.dispatcher
Expand Down

0 comments on commit ce4871f

Please sign in to comment.