mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
Return Unit when the upload operation succeeds
This commit is contained in:
parent
39cdd109f0
commit
08d75d347b
@ -107,7 +107,7 @@ open class UploadFileFromFileSystemOperation(
|
|||||||
|
|
||||||
val status = client.executeHttpMethod(putMethod)
|
val status = client.executeHttpMethod(putMethod)
|
||||||
return if (isSuccess(status)) {
|
return if (isSuccess(status)) {
|
||||||
RemoteOperationResult<Unit>(ResultCode.OK)
|
RemoteOperationResult<Unit>(ResultCode.OK).apply { data = Unit }
|
||||||
} else { // synchronization failed
|
} else { // synchronization failed
|
||||||
RemoteOperationResult<Unit>(putMethod)
|
RemoteOperationResult<Unit>(putMethod)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user