diff --git a/delta/plugins/storage/src/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/files/model/FileId.scala b/delta/plugins/storage/src/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/files/model/FileId.scala index 256cefd87e..f670813aa4 100644 --- a/delta/plugins/storage/src/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/files/model/FileId.scala +++ b/delta/plugins/storage/src/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/files/model/FileId.scala @@ -17,7 +17,6 @@ final case class FileId(id: IdSegmentRef, project: ProjectRef) { def expandRef(fetchContext: ProjectRef => IO[ProjectContext]): IO[ResourceRef] = fetchContext(project).flatMap { pc => iriExpander(id.value, pc).map { iri => - (iri, pc) id match { case IdSegmentRef.Latest(_) => ResourceRef.Latest(iri) case IdSegmentRef.Revision(_, rev) => ResourceRef.Revision(iri, rev) diff --git a/delta/plugins/storage/src/test/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/files/RemoteStorageFilesSpec.scala b/delta/plugins/storage/src/test/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/files/RemoteStorageFilesSpec.scala index 41140aff77..06bf44fab3 100644 --- a/delta/plugins/storage/src/test/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/files/RemoteStorageFilesSpec.scala +++ b/delta/plugins/storage/src/test/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/files/RemoteStorageFilesSpec.scala @@ -1,5 +1,3 @@ package ch.epfl.bluebrain.nexus.delta.plugins.storage.files -class RemoteStorageFilesSpec { - -} +class RemoteStorageFilesSpec {} diff --git a/delta/plugins/storage/src/test/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/storages/access/DiskStorageAccessSuite.scala b/delta/plugins/storage/src/test/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/storages/access/DiskStorageAccessSuite.scala index 7240a96955..701e13b486 100644 --- a/delta/plugins/storage/src/test/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/storages/access/DiskStorageAccessSuite.scala +++ b/delta/plugins/storage/src/test/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/storages/access/DiskStorageAccessSuite.scala @@ -15,19 +15,19 @@ class DiskStorageAccessSuite extends NexusSuite { } test("fail when volume does not exist") { - val volume = AbsolutePath(Path.of("/random", genString())).rightValue + val volume = AbsolutePath(Path.of("/random", genString())).rightValue val expectedError = StorageNotAccessible(s"Volume '$volume' does not exist.") checkVolumeExists(volume).interceptEquals(expectedError) } test("fail when volume is not a directory") { - val volume = AbsolutePath(Files.createTempFile(genString(), genString())).rightValue + val volume = AbsolutePath(Files.createTempFile(genString(), genString())).rightValue val expectedError = StorageNotAccessible(s"Volume '$volume' is not a directory.") checkVolumeExists(volume).interceptEquals(expectedError) } test("fail when volume does not have write access") { - val volume = AbsolutePath(Files.createTempDirectory("disk-not-access")).rightValue + val volume = AbsolutePath(Files.createTempDirectory("disk-not-access")).rightValue volume.value.toFile.setReadOnly() val expectedError = StorageNotAccessible(s"Volume '$volume' does not have write access.") checkVolumeExists(volume).interceptEquals(expectedError) diff --git a/delta/plugins/storage/src/test/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/storages/access/S3StorageAccessSuite.scala b/delta/plugins/storage/src/test/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/storages/access/S3StorageAccessSuite.scala index f51c59460a..d4169387c9 100644 --- a/delta/plugins/storage/src/test/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/storages/access/S3StorageAccessSuite.scala +++ b/delta/plugins/storage/src/test/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/storages/access/S3StorageAccessSuite.scala @@ -9,8 +9,7 @@ import ch.epfl.bluebrain.nexus.testkit.mu.NexusSuite import io.laserdisc.pure.s3.tagless.S3AsyncClientOp import munit.AnyFixture -class S3StorageAccessSuite extends NexusSuite - with LocalStackS3StorageClient.Fixture with S3Helpers { +class S3StorageAccessSuite extends NexusSuite with LocalStackS3StorageClient.Fixture with S3Helpers { override def munitFixtures: Seq[AnyFixture[_]] = List(localStackS3Client) @@ -29,4 +28,3 @@ class S3StorageAccessSuite extends NexusSuite s3Access.checkBucketExists(genString()).intercept[StorageNotAccessible] } } -