Fixed name shadowing

This commit is contained in:
Robinson 2023-01-02 15:41:43 +01:00
parent c26c326967
commit b929809bc7
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C

View File

@ -1295,9 +1295,9 @@ object FileUtil {
if (name == fileToExtract) { if (name == fileToExtract) {
val tempFile = tempFile(name) val tempFile = tempFile(name)
tempFile.deleteOnExit() tempFile.deleteOnExit()
val output = FileOutputStream(tempFile) val tempOutput = FileOutputStream(tempFile)
output.use { output -> tempOutput.use {
inputStream.copyTo(output) inputStream.copyTo(it)
} }
return tempFile.absolutePath return tempFile.absolutePath
} }