1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Merge pull request #390 from owncloud/ktLint

Fix some ktlint findings
This commit is contained in:
Abel García de Prada 2021-04-14 09:45:16 +02:00 committed by GitHub
commit 7dc81fb74c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -45,9 +45,9 @@ internal class StatusRequester {
redirectedToNonSecureLocationBefore: Boolean, redirectedToNonSecureLocationBefore: Boolean,
baseUrl: String, baseUrl: String,
redirectedUrl: String redirectedUrl: String
) = redirectedToNonSecureLocationBefore ) = redirectedToNonSecureLocationBefore ||
|| (baseUrl.startsWith(HTTPS_SCHEME) (baseUrl.startsWith(HTTPS_SCHEME) &&
&& !redirectedUrl.startsWith(HTTPS_SCHEME)) !redirectedUrl.startsWith(HTTPS_SCHEME))
fun updateLocationWithRedirectPath(oldLocation: String, redirectedLocation: String): String { fun updateLocationWithRedirectPath(oldLocation: String, redirectedLocation: String): String {
/** Redirection with different endpoint. /** Redirection with different endpoint.