SNRK-57: Remove run

This commit is contained in:
Kirill Grachev 2023-04-28 16:59:11 +03:00
parent 256fb16748
commit 52772cde7d

View File

@ -12,9 +12,8 @@ internal class S3Directory(
private val bucketName: String, private val bucketName: String,
private val currentDir: Path, private val currentDir: Path,
) : Directory { ) : Directory {
override suspend fun get(filename: String): FileReader = run { override suspend fun get(filename: String): FileReader =
S3FileReader(client, bucketName, currentDir / filename) S3FileReader(client, bucketName, currentDir / filename)
}
override suspend fun create(filename: String, ignoreIfExists: Boolean) { override suspend fun create(filename: String, ignoreIfExists: Boolean) {
if (!ignoreIfExists) { if (!ignoreIfExists) {