File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
app/src/main/java/com/poti/android/domain/usecase/image Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import com.poti.android.core.common.constant.ImageConstants.IMAGE_EXTENSION
44import com.poti.android.domain.model.image.PresignedUploadInfo
55import com.poti.android.domain.repository.FileUploadRepository
66import com.poti.android.domain.repository.ImageRepository
7- import timber.log.Timber
87import java.io.File
98import javax.inject.Inject
109import kotlin.coroutines.cancellation.CancellationException
@@ -29,7 +28,7 @@ class UploadImagesUseCaseV2 @Inject constructor(
2928 if (t is CancellationException ) throw t
3029 return Result .failure(t)
3130 } finally {
32- clearDirectory()
31+ fileUploadRepository. clearDirectory()
3332 }
3433 }
3534
@@ -59,11 +58,4 @@ class UploadImagesUseCaseV2 @Inject constructor(
5958 fileUploadRepository.uploadImage(urls[i], files[i]).getOrThrow()
6059 }
6160 }
62-
63- private fun clearDirectory () = runCatching {
64- fileUploadRepository.clearDirectory()
65- .onFailure {
66- Timber .e(it, " fail on clearDirectory" )
67- }
68- }
6961}
You can’t perform that action at this time.
0 commit comments