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(
323
323
workBookType : WorkBookType = WorkBookType .XLSX ,
324
324
keepFile : Boolean = false,
325
325
) {
326
-
327
326
val factory =
328
327
if (keepFile){
329
328
when (workBookType) {
330
329
WorkBookType .XLS -> HSSFWorkbook (file.inputStream())
331
- WorkBookType .XLSX -> XSSFWorkbook (file.inputStream())
330
+ WorkBookType .XLSX -> XSSFWorkbook (file.inputStream())
332
331
}
333
- }
334
- else {
332
+ } else {
335
333
when (workBookType) {
336
- WorkBookType .XLS -> HSSFWorkbook ()
337
- WorkBookType .XLSX -> XSSFWorkbook ()
334
+ WorkBookType .XLS -> HSSFWorkbook ()
335
+ WorkBookType .XLSX -> XSSFWorkbook ()
338
336
}
339
337
}
340
338
return file.outputStream().use {
You can’t perform that action at this time.
0 commit comments