Skip to content

Commit

Permalink
chore: Code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
tevincent committed Nov 18, 2024
1 parent d2c1862 commit ebaeee8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ class TransferController(private val realmProvider: RealmProvider) {
}

@Throws(RealmException::class)
fun getNotReadyTransfers(): List<Transfer> = runThrowingRealm {
fun getNotReadyTransfers(): RealmResults<TransferDB> = runThrowingRealm {
val query = "${TransferDB.transferStatusPropertyName} != '${TransferStatus.READY.name}'"
return realm?.query<TransferDB>(query)?.find() ?: emptyList()
return realm.query<TransferDB>(query).find()
}
//endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ import com.infomaniak.multiplatform_swisstransfer.common.models.*
import io.realm.kotlin.types.RealmObject
import io.realm.kotlin.types.annotations.Ignore

class AppSettingsDB(): RealmObject, AppSettings {
class AppSettingsDB() : RealmObject, AppSettings {

@Ignore
private var defaultEmailLanguage = EmailLanguage.ENGLISH

constructor(defaultEmailLanguage: EmailLanguage): this() {
constructor(defaultEmailLanguage: EmailLanguage) : this() {
this.defaultEmailLanguage = defaultEmailLanguage
}

Expand Down

0 comments on commit ebaeee8

Please sign in to comment.