mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Automatic Lint
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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())!!
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user