perf: sequenceOf() -> emptySequence()

This commit is contained in:
yairm210
2024-06-28 13:07:08 +03:00
parent ee5d06d187
commit 6315984da7
10 changed files with 14 additions and 13 deletions

View File

@ -95,7 +95,7 @@ object AndroidImagePacker {
fun File.listTree(): Sequence<File> = when {
this.isFile -> sequenceOf(this)
this.isDirectory -> this.listFiles()!!.asSequence().flatMap { it.listTree() }
else -> sequenceOf()
else -> emptySequence()
}
// Check if outdated