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 addae0a commit 531705d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,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 531705d

Please sign in to comment.