Merge pull request #7291 from Bnyro/master

fix: remove unnecessary whitespaces at instances list fallback
This commit is contained in:
Bnyro 2025-04-08 18:20:42 +02:00 committed by GitHub
commit 39ddb7b643
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ class InstanceRepository(private val context: Context) {
.takeWhile { !it.startsWith("---") }
.filter { it.isNotBlank() }
.map { line ->
val infoParts = line.split("|")
val infoParts = line.split("|").map { it.trim() }
PipedInstance(name = infoParts[0], apiUrl = infoParts[1], locations = infoParts[2], cdn = infoParts[3] == "Yes")
}