Skip to content

Commit

Permalink
refactor: removed unnecessary get in ViewModelModule and Ktlint cha…
Browse files Browse the repository at this point in the history
…nges
  • Loading branch information
joragua committed Nov 26, 2024
1 parent 20c35c6 commit b0ba8a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ val viewModelModule = module {
viewModel { AuthenticationViewModel(get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get()) }
viewModel { MigrationViewModel(MainApp.dataFolder, get(), get(), get(), get(), get(), get(), get()) }
viewModel { TransfersViewModel(get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get()) }
viewModel { ReceiveExternalFilesViewModel(get(), get(), get(), get()) }
viewModel { ReceiveExternalFilesViewModel(get(), get(), get()) }
viewModel { (accountName: String, showPersonalSpace: Boolean) ->
SpacesListViewModel(get(), get(), get(), get(), get(), accountName, showPersonalSpace)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class OCSpacesRepository(
} else {
UserQuota(accountName, it.quota?.remaining!!, it.quota?.used!!, it.quota?.total!!, UserQuotaState.fromValue(it.quota?.state!!))
}
} ?: UserQuota (accountName, -4, 0, 0, UserQuotaState.NORMAL)
} ?: UserQuota(accountName, -4, 0, 0, UserQuotaState.NORMAL)
localUserDataSource.saveQuotaForAccount(accountName, userQuota)
}
}
Expand Down

0 comments on commit b0ba8a1

Please sign in to comment.