Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Stexxe committed Dec 26, 2024
1 parent 8c5cf5e commit 1d1878b
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public val Logging: ClientPlugin<LoggingConfig> = createClientPlugin("Logging",
* Detects if the body is a binary data
* @return
* Boolean: true if the body is a binary data.
* Long: body size if calculated.
* Long?: body size if calculated.
* ByteReadChannel: body channel with the original data.
*/
suspend fun detectIfBinary(body: ByteReadChannel, contentLength: Long?, contentType: ContentType?, headers: Headers): Triple<Boolean, Long?, ByteReadChannel> {
Expand Down Expand Up @@ -532,9 +532,7 @@ public val Logging: ClientPlugin<LoggingConfig> = createClientPlugin("Logging",
}

on(ReceiveHook) { call ->
if (stdFormat) {
return@on
}
if (stdFormat) return@on

if (level == LogLevel.NONE || call.attributes.contains(DisableLogging)) {
return@on
Expand All @@ -552,9 +550,7 @@ public val Logging: ClientPlugin<LoggingConfig> = createClientPlugin("Logging",
}
}

if (stdFormat) {
return@createClientPlugin
}
if (stdFormat) return@createClientPlugin

if (!level.body) return@createClientPlugin

Expand Down

0 comments on commit 1d1878b

Please sign in to comment.