Исправлено много варнингов
This commit is contained in:
@@ -196,11 +196,10 @@ class YandexDiskRepository(
|
||||
}
|
||||
return@withContext object : FilterInputStream(stream) {
|
||||
override fun close() {
|
||||
try {
|
||||
`in`.close()
|
||||
} finally {
|
||||
resp.close()
|
||||
`in`.use {
|
||||
// Response must be closed after the wrapped stream.
|
||||
}
|
||||
resp.close()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,6 @@ import kotlinx.coroutines.flow.map
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.sync.Mutex
|
||||
import kotlinx.coroutines.sync.withLock
|
||||
import java.io.FileNotFoundException
|
||||
import java.io.InputStream
|
||||
import java.io.OutputStream
|
||||
import java.time.Instant
|
||||
|
||||
Reference in New Issue
Block a user