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

Commit

Permalink
Merge pull request #385 from owncloud/ktLintFindings
Browse files Browse the repository at this point in the history
Fix ktlint findings
  • Loading branch information
abelgardep authored Apr 5, 2021
2 parents d1765ee + 4df8803 commit 87aa713
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
}
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
}
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 87aa713

Please sign in to comment.