Commit fc3929f8 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Close workbook after reading.

parent d79fb9ce
Pipeline #9232 passed with stages
in 4 minutes and 55 seconds
......@@ -68,7 +68,7 @@ class FileValidation(private val sftp: SftpClient) {
sftp.open(file).use {
try {
val stream = it.RemoteFileInputStream()
WorkbookFactory.create(stream)
WorkbookFactory.create(stream).close()
} catch (ex: Exception) {
return@use Pair(
Message("ERROR", file.path),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment