mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 02:17:41 +00:00 
			
		
		
		
	Fix ktlint findings
This commit is contained in:
		
							parent
							
								
									d1765eefb3
								
							
						
					
					
						commit
						4df880357c
					
				| @ -26,6 +26,6 @@ package com.owncloud.android.lib.resources.files.services | ||||
| import com.owncloud.android.lib.common.operations.RemoteOperationResult | ||||
| import com.owncloud.android.lib.resources.Service | ||||
| 
 | ||||
| interface FileService: Service { | ||||
| interface FileService : Service { | ||||
|     fun checkPathExistence(path: String, isUserLogged: Boolean): RemoteOperationResult<Boolean> | ||||
| } | ||||
|  | ||||
| @ -31,7 +31,6 @@ import com.owncloud.android.lib.common.operations.RemoteOperationResult.ResultCo | ||||
| import com.owncloud.android.lib.resources.status.HttpScheme.HTTPS_PREFIX | ||||
| import com.owncloud.android.lib.resources.status.HttpScheme.HTTP_PREFIX | ||||
| import com.owncloud.android.lib.resources.status.HttpScheme.HTTP_SCHEME | ||||
| import okhttp3.HttpUrl.Companion.toHttpUrl | ||||
| import org.json.JSONException | ||||
| import timber.log.Timber | ||||
| 
 | ||||
|  | ||||
| @ -24,6 +24,6 @@ import com.owncloud.android.lib.common.operations.RemoteOperationResult | ||||
| import com.owncloud.android.lib.resources.Service | ||||
| import com.owncloud.android.lib.resources.status.RemoteCapability | ||||
| 
 | ||||
| interface CapabilityService: Service { | ||||
|     fun getCapabilities() : RemoteOperationResult<RemoteCapability> | ||||
| interface CapabilityService : Service { | ||||
|     fun getCapabilities(): RemoteOperationResult<RemoteCapability> | ||||
| } | ||||
|  | ||||
| @ -70,7 +70,7 @@ class GetRemoteUserAvatarOperation(private val avatarDimension: Int) : RemoteOpe | ||||
| 
 | ||||
|                 /// download will be performed to a buffer | ||||
|                 inputStream = getMethod.getResponseBodyAsStream() | ||||
|                 val bytesArray = inputStream?.readBytes()?: byteArrayOf() | ||||
|                 val bytesArray = inputStream?.readBytes() ?: byteArrayOf() | ||||
| 
 | ||||
|                 // TODO check total bytes transferred? | ||||
|                 Timber.d("Avatar size: Bytes received ${bytesArray.size} of $contentLength") | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user