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 currentDir: Path,
) : Directory {
override suspend fun get(filename: String): FileReader = run {
override suspend fun get(filename: String): FileReader =
S3FileReader(client, bucketName, currentDir / filename)
}
override suspend fun create(filename: String, ignoreIfExists: Boolean) {
if (!ignoreIfExists) {