Skip to content

Commit

Permalink
Clean code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Oct 23, 2024
1 parent 17f7216 commit 56110c8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import android.provider.OpenableColumns
import android.util.Log
import androidx.core.net.toUri
import com.infomaniak.swisstransfer.ui.components.FileUi
import com.infomaniak.swisstransfer.ui.screen.newtransfer.NewTransferViewModel.Companion.LOCAL_COPY_FOLDER
import com.infomaniak.swisstransfer.ui.utils.FileNameUtils
import dagger.hilt.android.qualifiers.ApplicationContext
import io.sentry.Sentry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class NewTransferViewModel @Inject constructor(
viewModelScope.launch(Dispatchers.IO) {
if (isFirstViewModelCreation) {
isFirstViewModelCreation = false
// Remove old imported files in case it would've crashed or similar to start with a clean slate. This is required for
// already imported files restoration to not pick up old files in some extreme cases.
// Remove old imported files in case it would've crashed or similar to start with a clean slate. This is required
// for already imported files restoration to not pick up old files in some extreme cases.
importationFilesManager.removeLocalCopyFolder()
} else {
importationFilesManager.restoreAlreadyImportedFiles()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ package com.infomaniak.swisstransfer.ui.screen.newtransfer

import android.content.Context
import android.net.Uri
import androidx.core.net.toUri
import com.infomaniak.swisstransfer.ui.components.FileUi
import com.infomaniak.swisstransfer.ui.screen.newtransfer.NewTransferViewModel.Companion.LOCAL_COPY_FOLDER
import dagger.hilt.android.qualifiers.ApplicationContext
import io.sentry.Sentry
Expand Down

0 comments on commit 56110c8

Please sign in to comment.