mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 02:17:41 +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) | ||||
|         return if (isSuccess(status)) { | ||||
|             RemoteOperationResult<Unit>(ResultCode.OK) | ||||
|             RemoteOperationResult<Unit>(ResultCode.OK).apply { data = Unit } | ||||
|         } else { // synchronization failed | ||||
|             RemoteOperationResult<Unit>(putMethod) | ||||
|         } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user