File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
dataframe-excel/src/main/kotlin/org/jetbrains/kotlinx/dataframe/io Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -323,18 +323,16 @@ public fun <T> DataFrame<T>.writeExcel(
323323 workBookType : WorkBookType = WorkBookType .XLSX ,
324324 keepFile : Boolean = false,
325325) {
326-
327326 val factory =
328327 if (keepFile){
329328 when (workBookType) {
330329 WorkBookType .XLS -> HSSFWorkbook (file.inputStream())
331- WorkBookType .XLSX -> XSSFWorkbook (file.inputStream())
330+ WorkBookType .XLSX -> XSSFWorkbook (file.inputStream())
332331 }
333- }
334- else {
332+ } else {
335333 when (workBookType) {
336- WorkBookType .XLS -> HSSFWorkbook ()
337- WorkBookType .XLSX -> XSSFWorkbook ()
334+ WorkBookType .XLS -> HSSFWorkbook ()
335+ WorkBookType .XLSX -> XSSFWorkbook ()
338336 }
339337 }
340338 return file.outputStream().use {
You can’t perform that action at this time.
0 commit comments