Skip to content

Commit a9bac7d

Browse files
committed
fix: remove unnecessary whitespaces at instances list fallback
1 parent 211e8d9 commit a9bac7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/com/github/libretube/api/InstanceRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class InstanceRepository(private val context: Context) {
2525
.takeWhile { !it.startsWith("---") }
2626
.filter { it.isNotBlank() }
2727
.map { line ->
28-
val infoParts = line.split("|")
28+
val infoParts = line.split("|").map { it.trim() }
2929

3030
PipedInstance(name = infoParts[0], apiUrl = infoParts[1], locations = infoParts[2], cdn = infoParts[3] == "Yes")
3131
}

0 commit comments

Comments
 (0)