mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix(source/local): Double orEmpty
This commit is contained in:
parent
8f9194c4a9
commit
7df619ac13
1 changed files with 0 additions and 1 deletions
|
@ -65,7 +65,6 @@ class LocalSource(private val context: Context) : CatalogueSource, UnmeteredSour
|
||||||
val dir = getBaseDirectories(context).asSequence()
|
val dir = getBaseDirectories(context).asSequence()
|
||||||
.mapNotNull { it?.findFile(manga.url)?.listFiles() }
|
.mapNotNull { it?.findFile(manga.url)?.listFiles() }
|
||||||
.firstOrNull()
|
.firstOrNull()
|
||||||
.orEmpty()
|
|
||||||
|
|
||||||
val localDetails = dir.orEmpty()
|
val localDetails = dir.orEmpty()
|
||||||
.filter { !it.isDirectory }
|
.filter { !it.isDirectory }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue