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

Commit 9ad0e8f

Browse files
theScrabiabelgardep
authored andcommitted
apply codereview
1 parent 61ee5aa commit 9ad0e8f

File tree

1 file changed

+1
-2
lines changed
  • owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/status

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ internal class StatusRequester {
4949
redirectedUrl: String
5050
) = redirectedToUnsecureLocationBefore
5151
|| (baseUrl.startsWith(HTTPS_SCHEME)
52-
&& (!redirectedUrl.startsWith(HTTPS_SCHEME))
53-
&& redirectedUrl.startsWith(HTTP_SCHEME))
52+
&& !redirectedUrl.startsWith(HTTPS_SCHEME))
5453

5554
fun updateLocationWithRedirectPath(oldLocation: String, redirectedLocation: String): String {
5655
if (!redirectedLocation.startsWith("/"))

0 commit comments

Comments
 (0)