From 52772cde7d3459857715aebbdbfe9b201d7043fe Mon Sep 17 00:00:00 2001 From: Kirill Grachev Date: Fri, 28 Apr 2023 16:59:11 +0300 Subject: [PATCH] SNRK-57: Remove `run` --- .../main/kotlin/space/kscience/snark/storage/s3/S3Directory.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/snark-storage-driver/src/main/kotlin/space/kscience/snark/storage/s3/S3Directory.kt b/snark-storage-driver/src/main/kotlin/space/kscience/snark/storage/s3/S3Directory.kt index 4ca0587..2cdc8fd 100644 --- a/snark-storage-driver/src/main/kotlin/space/kscience/snark/storage/s3/S3Directory.kt +++ b/snark-storage-driver/src/main/kotlin/space/kscience/snark/storage/s3/S3Directory.kt @@ -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) {