Skip to content

Commit

Permalink
chore: Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Nov 22, 2024
1 parent cf9fc44 commit 252adff
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ package com.infomaniak.multiplatform_swisstransfer.common.ext

import java.util.Date

fun Long.toDateFromSeconds() = Date(this * 1000)
fun Long.toDateFromSeconds() = Date(this * 1_000L)
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ interface File {
val path: String?
val thumbnailPath: String?
}

Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class TransferController(private val realmProvider: RealmProvider) {
suspend fun deleteTransfer(transferUUID: String) = runThrowingRealm {
realm.write {
val transferToDelete = query<TransferDB>("${TransferDB::linkUUID.name} == '$transferUUID'").first()
this.delete(transferToDelete)
delete(transferToDelete)
}
}

Expand Down

0 comments on commit 252adff

Please sign in to comment.