Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 22719c8

Browse files
committed
Return unit in the remote operation
1 parent 12b009e commit 22719c8

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/UploadFileFromContentUriOperation.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class UploadFileFromContentUriOperation(
5858
return try {
5959
val status = client.executeHttpMethod(putMethod)
6060
if (isSuccess(status)) {
61-
RemoteOperationResult<Unit>(RemoteOperationResult.ResultCode.OK)
61+
RemoteOperationResult<Unit>(RemoteOperationResult.ResultCode.OK).apply { data = Unit }
6262
} else {
6363
RemoteOperationResult<Unit>(putMethod)
6464
}

0 commit comments

Comments
 (0)