Code Cleanup
This commit is contained in:
parent
f8be0502ca
commit
5005e91b1c
1 changed files with 2 additions and 2 deletions
|
@ -19,8 +19,8 @@ class BackupViewModel : ViewModel() {
|
|||
|
||||
fun loadBackups() {
|
||||
viewModelScope.launch {
|
||||
File(BackupHelper.backupRootPath).listFiles { _, name ->
|
||||
return@listFiles name.endsWith(BackupHelper.BACKUP_EXTENSION)
|
||||
File(BackupHelper.backupRootPath).listFiles { file, _ ->
|
||||
return@listFiles file.extension == BackupHelper.BACKUP_EXTENSION
|
||||
}?.toList()?.let {
|
||||
backupsMutableLiveData.value = it
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue