mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 10:27:45 +00:00 
			
		
		
		
	Return Unit when the upload operation succeeds
This commit is contained in:
		
							parent
							
								
									1a2a6b62d5
								
							
						
					
					
						commit
						f1d04b8037
					
				| @ -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