Skip to content

Commit

Permalink
Close ZipFile after extracting it
Browse files Browse the repository at this point in the history
  • Loading branch information
schroda committed Jul 21, 2023
1 parent 82386a2 commit 891cd73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ object WebInterfaceManager {

private fun extractDownload(zipFilePath: String, targetPath: String) {
File(targetPath).mkdirs()
ZipFile(zipFilePath).extractAll(targetPath)
ZipFile(zipFilePath).use { it.extractAll(targetPath) }
}

fun isUpdateAvailable(currentVersion: String): Boolean {
Expand Down

0 comments on commit 891cd73

Please sign in to comment.