Исправлено много варнингов

This commit is contained in:
2026-05-17 19:27:15 +03:00
parent 3820a60d2c
commit 7d5fd1b634
17 changed files with 114 additions and 75 deletions

View File

@@ -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()
}
}
}

View File

@@ -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