Automatic Lint

This commit is contained in:
Syer10
2023-02-15 03:44:17 +00:00
parent 125d9b7a3e
commit 11bd97f631
3 changed files with 3 additions and 3 deletions

View File

@@ -44,4 +44,4 @@ class FlowIOResponseConverter @Inject constructor(private val json: Json) : Resp
} }
} }
expect suspend fun decodeType(response: HttpResponse, typeInfo: TypeInfo, json: Json): Any expect suspend fun decodeType(response: HttpResponse, typeInfo: TypeInfo, json: Json): Any

View File

@@ -14,4 +14,4 @@ import kotlinx.serialization.serializer
actual suspend fun decodeType(response: HttpResponse, typeInfo: TypeInfo, json: Json): Any { actual suspend fun decodeType(response: HttpResponse, typeInfo: TypeInfo, json: Json): Any {
return json.decodeFromString(serializer(typeInfo.kotlinType!!), response.bodyAsText())!! return json.decodeFromString(serializer(typeInfo.kotlinType!!), response.bodyAsText())!!
} }

View File

@@ -13,4 +13,4 @@ import kotlinx.serialization.json.Json
actual suspend fun decodeType(response: HttpResponse, typeInfo: TypeInfo, json: Json): Any { actual suspend fun decodeType(response: HttpResponse, typeInfo: TypeInfo, json: Json): Any {
return response.body(typeInfo) return response.body(typeInfo)
} }