mirror of
https://github.com/owncloud/android-library.git
synced 2026-08-11 16:33:03 +00:00
pleasure the linter
This commit is contained in:
committed by
Abel García de Prada
parent
270e127940
commit
dac7bcc0e7
+2
-2
@@ -48,8 +48,8 @@ internal class StatusRequester {
|
||||
fun updateLocationWithRedirectPath(oldLocation: String, redirectedLocation: String): String {
|
||||
if (!redirectedLocation.startsWith("/"))
|
||||
return redirectedLocation
|
||||
val oldLocation = URL(oldLocation)
|
||||
return URL(oldLocation.protocol, oldLocation.host, oldLocation.port, redirectedLocation).toString()
|
||||
val oldLocationURL = URL(oldLocation)
|
||||
return URL(oldLocationURL.protocol, oldLocationURL.host, oldLocationURL.port, redirectedLocation).toString()
|
||||
}
|
||||
|
||||
private fun getGetMethod(url: String): GetMethod {
|
||||
|
||||
Reference in New Issue
Block a user