Skip to content

Commit

Permalink
Merge pull request #141 from usefulness/cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski authored Oct 5, 2023
2 parents 926e1c5 + 126613d commit d00aa66
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@ internal object NativeLoader {
val tempFolder = tempDir.absolutePath
val dir = File(tempFolder)

dir.walkBottomUp()
.filter { it.name.startsWith("webp-imageio-$version") && !it.name.endsWith(".lck") }
.forEach { nativeLibFile ->
dir.listFiles { _, name -> name.startsWith("webp-imageio-$version") && !name.endsWith(".lck") }
?.forEach { nativeLibFile ->
val lckFile = File(nativeLibFile.absolutePath + ".lck")
if (!lckFile.exists()) {
try {
Expand Down

0 comments on commit d00aa66

Please sign in to comment.