diff --git a/Database/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/RealmProvider.kt b/Database/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/RealmProvider.kt index 0dbff0ab..e272d67e 100644 --- a/Database/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/RealmProvider.kt +++ b/Database/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/RealmProvider.kt @@ -49,9 +49,7 @@ internal class RealmProvider { val realmUploadTasks by lazy { Realm.open(realmUploadTasksConfiguration) } - fun realmTransfers(userId: Int): Realm { - return Realm.open(realmTransfersConfiguration) - } + fun realmTransfers(userId: Int): Realm = Realm.open(realmTransfersConfiguration) fun closeRealm(realm: Realm) { realm.close()