fix(source/local): Double orEmpty

This commit is contained in:
Ahmad Ansori Palembani 2024-11-25 14:49:18 +07:00
parent 8f9194c4a9
commit 7df619ac13
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -65,7 +65,6 @@ class LocalSource(private val context: Context) : CatalogueSource, UnmeteredSour
val dir = getBaseDirectories(context).asSequence()
.mapNotNull { it?.findFile(manga.url)?.listFiles() }
.firstOrNull()
.orEmpty()
val localDetails = dir.orEmpty()
.filter { !it.isDirectory }