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

apply codereview

This commit is contained in:
Schabi 2020-11-10 11:43:39 +01:00
parent 756ea8c631
commit 7ff2c2c658

View File

@ -49,8 +49,7 @@ internal class StatusRequester {
redirectedUrl: String
) = redirectedToUnsecureLocationBefore
|| (baseUrl.startsWith(HTTPS_SCHEME)
&& (!redirectedUrl.startsWith(HTTPS_SCHEME))
&& redirectedUrl.startsWith(HTTP_SCHEME))
&& !redirectedUrl.startsWith(HTTPS_SCHEME))
fun updateLocationWithRedirectPath(oldLocation: String, redirectedLocation: String): String {
if (!redirectedLocation.startsWith("/"))