forked from loafle/openapi-generator-original
[kotlin][client] fix warning (#10390)
This commit is contained in:
parent
27727acf52
commit
084e0930d0
@ -370,10 +370,10 @@ import com.squareup.moshi.adapter
|
||||
val call = client.newCall(request)
|
||||
continuation.invokeOnCancellation { call.cancel() }
|
||||
call.enqueue(object : Callback {
|
||||
override fun onFailure(c: Call, e: IOException) {
|
||||
override fun onFailure(call: Call, e: IOException) {
|
||||
continuation.resumeWithException(e)
|
||||
}
|
||||
override fun onResponse(c: Call, response: Response) {
|
||||
override fun onResponse(call: Call, response: Response) {
|
||||
continuation.resume(response)
|
||||
}
|
||||
})
|
||||
|
@ -214,10 +214,10 @@ open class ApiClient(val baseUrl: String) {
|
||||
val call = client.newCall(request)
|
||||
continuation.invokeOnCancellation { call.cancel() }
|
||||
call.enqueue(object : Callback {
|
||||
override fun onFailure(c: Call, e: IOException) {
|
||||
override fun onFailure(call: Call, e: IOException) {
|
||||
continuation.resumeWithException(e)
|
||||
}
|
||||
override fun onResponse(c: Call, response: Response) {
|
||||
override fun onResponse(call: Call, response: Response) {
|
||||
continuation.resume(response)
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user