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

Commit c36eedd

Browse files
committed
Return Unit when the upload operation succeeds
1 parent ba37bce commit c36eedd

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ open class UploadFileFromFileSystemOperation(
107107

108108
val status = client.executeHttpMethod(putMethod)
109109
return if (isSuccess(status)) {
110-
RemoteOperationResult<Unit>(ResultCode.OK)
110+
RemoteOperationResult<Unit>(ResultCode.OK).apply { data = Unit }
111111
} else { // synchronization failed
112112
RemoteOperationResult<Unit>(putMethod)
113113
}

0 commit comments

Comments
 (0)