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

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")
}