Исправлено ещё несколько deprecated предупреждений
This commit is contained in:
@@ -190,10 +190,7 @@ class YandexDiskRepository(
|
||||
when {
|
||||
resp.isSuccessful -> {
|
||||
val body = resp.body
|
||||
val stream = body?.byteStream() ?: run {
|
||||
resp.close()
|
||||
throw IOException("Download failed: missing body")
|
||||
}
|
||||
val stream = body.byteStream()
|
||||
return@withContext object : FilterInputStream(stream) {
|
||||
override fun close() {
|
||||
`in`.use {
|
||||
|
||||
Reference in New Issue
Block a user