Fixes Url
This commit is contained in:
@@ -309,7 +309,7 @@ class Url(
|
|||||||
private fun dropLastSegment(output: StringBuilder) {
|
private fun dropLastSegment(output: StringBuilder) {
|
||||||
val lastSlash = output.lastIndexOf('/')
|
val lastSlash = output.lastIndexOf('/')
|
||||||
if (lastSlash >= 0) {
|
if (lastSlash >= 0) {
|
||||||
output.delete(lastSlash, output.length)
|
output.deleteRange(lastSlash, output.length)
|
||||||
} else {
|
} else {
|
||||||
output.clear()
|
output.clear()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user