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

Commit 7dc81fb

Browse files
authored
Merge pull request #390 from owncloud/ktLint
Fix some ktlint findings
2 parents 5ca9d5e + 1287035 commit 7dc81fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/shares/ShareXMLParser.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class ShareXMLParser {
176176
name.equals(NODE_ELEMENT, ignoreCase = true) -> {
177177
readElement(parser, shares)
178178
}
179-
name.equals(NODE_ID, ignoreCase = true) -> {// Parse Create XML Response
179+
name.equals(NODE_ID, ignoreCase = true) -> { // Parse Create XML Response
180180
share = RemoteShare()
181181
val value = readNode(parser, NODE_ID)
182182
share.id = value

owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/status/StatusRequester.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ internal class StatusRequester {
4545
redirectedToNonSecureLocationBefore: Boolean,
4646
baseUrl: String,
4747
redirectedUrl: String
48-
) = redirectedToNonSecureLocationBefore
49-
|| (baseUrl.startsWith(HTTPS_SCHEME)
50-
&& !redirectedUrl.startsWith(HTTPS_SCHEME))
48+
) = redirectedToNonSecureLocationBefore ||
49+
(baseUrl.startsWith(HTTPS_SCHEME) &&
50+
!redirectedUrl.startsWith(HTTPS_SCHEME))
5151

5252
fun updateLocationWithRedirectPath(oldLocation: String, redirectedLocation: String): String {
5353
/** Redirection with different endpoint.

0 commit comments

Comments
 (0)