Skip to content

Commit 45e1332

Browse files
committed
fix: emit Unit to delete tmp file after successful retry in oC10
1 parent 3770018 commit 45e1332

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/chunks/ChunkedUploadFromFileSystemOperation.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class ChunkedUploadFromFileSystemOperation(
102102
Timber.d("Upload of $localPath to $remotePath, chunk index $chunkIndex, count $chunkCount, HTTP result status $status")
103103

104104
if (isSuccess(status)) {
105-
result = RemoteOperationResult<Unit>(ResultCode.OK)
105+
result = RemoteOperationResult<Unit>(ResultCode.OK).apply { data = Unit }
106106
} else {
107107
result = RemoteOperationResult<Unit>(putMethod)
108108
break

0 commit comments

Comments
 (0)