Skip to content

Commit

Permalink
fix: removed beginWith when it is not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitorbp committed Jul 29, 2024
1 parent 4808941 commit 3b981b6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ class UploadFileFromContentUriUseCase(
.then(removeLocalFileWorker) // File is already uploaded, so the original one can be removed if the behaviour is MOVE
.enqueue()
} else {
workManager.beginWith(uploadFileFromContentUriWorker)
.enqueue()
workManager.enqueue(uploadFileFromContentUriWorker)
}

Timber.i("Plain upload of ${params.contentUri.path} has been enqueued.")
Expand Down

0 comments on commit 3b981b6

Please sign in to comment.