Fix warnings

This commit is contained in:
Koitharu
2023-05-29 13:06:50 +03:00
parent 4522c478cb
commit 2442e7cbe1
17 changed files with 34 additions and 66 deletions

View File

@@ -130,7 +130,6 @@ class LocalMangaDirInput(root: File) : LocalMangaInput(root) {
}
val cbz = root.listFilesRecursive(CbzFilter()).firstOrNull() ?: return null
return ZipFile(cbz).use { zip ->
val filter = ImageFileFilter()
zip.entries().asSequence()
.firstOrNull { x -> !x.isDirectory && filter.accept(x) }
?.let { entry -> zipUri(cbz, entry.name) }