Removed dead code

This commit is contained in:
Abdelilah El Aissaoui 2023-05-26 00:18:37 +02:00
parent c8653233f4
commit d3d2b606b4
No known key found for this signature in database
GPG Key ID: 7587FC860F594869

View File

@ -54,13 +54,6 @@ class CloneViewModel @Inject constructor(
return@safeProcessingWithoutGit
}
val urlSplit = url.split("/", "\\").toMutableList()
// Removes the last element for URLs that end with "/" or "\" instead of the repo name like https://github.com/JetpackDuba/Gitnuro/
if (urlSplit.isNotEmpty() && urlSplit.last().isBlank()) {
urlSplit.removeLast()
}
val directory = File(directoryPath)
if (!directory.exists()) {