mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
Fix some ktlint findings
This commit is contained in:
parent
5ca9d5e330
commit
1287035311
@ -176,7 +176,7 @@ class ShareXMLParser {
|
|||||||
name.equals(NODE_ELEMENT, ignoreCase = true) -> {
|
name.equals(NODE_ELEMENT, ignoreCase = true) -> {
|
||||||
readElement(parser, shares)
|
readElement(parser, shares)
|
||||||
}
|
}
|
||||||
name.equals(NODE_ID, ignoreCase = true) -> {// Parse Create XML Response
|
name.equals(NODE_ID, ignoreCase = true) -> { // Parse Create XML Response
|
||||||
share = RemoteShare()
|
share = RemoteShare()
|
||||||
val value = readNode(parser, NODE_ID)
|
val value = readNode(parser, NODE_ID)
|
||||||
share.id = value
|
share.id = value
|
||||||
|
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user