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 b1fb7e3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 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 @@ -44,7 +44,7 @@ class MainEmptyListFragment : Fragment() {
}

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
with (binding.emptyDataParent) {
with(binding.emptyDataParent) {
listEmptyDatasetIcon.setImageResource(R.drawable.ic_folder)
listEmptyDatasetTitle.setText(R.string.file_list_empty_title_all_files)
listEmptyDatasetSubTitle.setText(R.string.light_users_subtitle)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ class FileDisplayActivity : FileActivity(),
transaction.commit()
}

private fun initAndShowEmptyPersonalFolder(){
private fun initAndShowEmptyPersonalFolder() {
val emptyListFragment = MainEmptyListFragment()
this.fileListOption = FileListOption.ALL_FILES
val transaction = supportFragmentManager.beginTransaction()
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 b1fb7e3

Please sign in to comment.