OpenedStorages больше не nullable

This commit is contained in:
2026-04-17 22:16:28 +03:00
parent d965dd8609
commit 51436401da
4 changed files with 72 additions and 67 deletions

View File

@@ -59,7 +59,7 @@ class LocalVaultViewModel @Inject constructor(
private fun collectFlows() {
viewModelScope.launch {
manageLocalVaultUseCase.localStorages.combine(getOpenedStoragesUseCase.openedStorages) { local, opened ->
if(local == null || opened == null)
if(local == null)
return@combine null
val list = mutableListOf<Tree<IStorageInfo>>()
for (storage in local) {