Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
koperagen committed Jan 10, 2024
1 parent a33e104 commit f841b32
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,18 +323,16 @@ public fun <T> DataFrame<T>.writeExcel(
workBookType: WorkBookType = WorkBookType.XLSX,
keepFile: Boolean = false,
) {

val factory =
if (keepFile){
when (workBookType) {
WorkBookType.XLS -> HSSFWorkbook(file.inputStream())
WorkBookType.XLSX -> XSSFWorkbook(file.inputStream())
WorkBookType.XLSX -> XSSFWorkbook(file.inputStream())
}
}
else {
} else {
when (workBookType) {
WorkBookType.XLS -> HSSFWorkbook()
WorkBookType.XLSX -> XSSFWorkbook()
WorkBookType.XLS -> HSSFWorkbook()
WorkBookType.XLSX -> XSSFWorkbook()
}
}
return file.outputStream().use {
Expand Down

0 comments on commit f841b32

Please sign in to comment.