File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
client/src/commonMain/kotlin/com/algolia/search/transport/internal Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -127,13 +127,13 @@ internal class Transport(
127127 apiKey(it.apiKey)
128128 }
129129 requestOptions(requestOptions)
130- requestBody(body)
130+ body?. let { requestBody(it) }
131131 }
132132 }
133133
134- private fun HttpRequestBuilder.requestBody (payload : String? ) {
134+ private fun HttpRequestBuilder.requestBody (payload : String ) {
135135 val body = when (compression) {
136- Compression .Gzip -> payload? .let (Gzip ::invoke)
136+ Compression .Gzip -> payload.let (Gzip ::invoke)
137137 Compression .None -> payload
138138 }
139139 setBody(body)
Original file line number Diff line number Diff line change 11[versions ]
22kotlin = " 1.7.10"
3- ktor = " 2.0.3 "
3+ ktor = " 2.1.1 "
44
55[libraries ]
66# Kotlin
You can’t perform that action at this time.
0 commit comments