From c368203d76f1cc30396ad936fa89ce01ce19bd4b Mon Sep 17 00:00:00 2001 From: Daniel Bell Date: Fri, 29 Sep 2023 23:12:00 +0200 Subject: [PATCH] scalafmt --- .../storage/storages/StoragePermissionProviderImpl.scala | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/delta/plugins/storage/src/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/storages/StoragePermissionProviderImpl.scala b/delta/plugins/storage/src/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/storages/StoragePermissionProviderImpl.scala index e2b707555d..ce92c63939 100644 --- a/delta/plugins/storage/src/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/storages/StoragePermissionProviderImpl.scala +++ b/delta/plugins/storage/src/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/storage/storages/StoragePermissionProviderImpl.scala @@ -8,13 +8,17 @@ import ch.epfl.bluebrain.nexus.delta.sourcing.model.ProjectRef import monix.bio.UIO class StoragePermissionProviderImpl(storages: Storages) extends StoragePermissionProvider { - override def permissionFor(id: IdSegmentRef, project: ProjectRef, accessType: StoragePermissionProvider.AccessType): UIO[Permission] = { + override def permissionFor( + id: IdSegmentRef, + project: ProjectRef, + accessType: StoragePermissionProvider.AccessType + ): UIO[Permission] = { storages .fetch(id, project) .map(storage => storage.value.storageValue) .map(storage => accessType match { - case Read => storage.readPermission + case Read => storage.readPermission case Write => storage.writePermission } )