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 77e01b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class TransferController(private val realmProvider: RealmProvider) {
@Throws(RealmException::class)
fun getNotReadyTransfers(): List<Transfer> = 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 77e01b5

Please sign in to comment.