Skip to content

Commit

Permalink
ktfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
David Motsonashvili committed Jun 7, 2024
1 parent efdda97 commit 1a7dc57
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import io.ktor.http.ContentType
import io.ktor.http.HttpStatusCode
import io.ktor.http.contentType
import io.ktor.serialization.kotlinx.json.json
import kotlin.time.Duration
import kotlinx.coroutines.CoroutineName
import kotlinx.coroutines.TimeoutCancellationException
import kotlinx.coroutines.flow.Flow
Expand All @@ -48,6 +47,7 @@ import kotlinx.coroutines.flow.map
import kotlinx.coroutines.launch
import kotlinx.coroutines.withTimeout
import kotlinx.serialization.json.Json
import kotlin.time.Duration

internal val JSON = Json {
ignoreUnknownKeys = true
Expand Down Expand Up @@ -214,7 +214,6 @@ interface HeaderProvider {
suspend fun generateHeaders(): Map<String, String>
}


private suspend fun validateResponse(response: HttpResponse) {
if (response.status == HttpStatusCode.OK) return
val text = response.bodyAsText()
Expand Down

0 comments on commit 1a7dc57

Please sign in to comment.