add panic
This commit is contained in:
parent
d1d6f84447
commit
643b32559d
4
xls.go
4
xls.go
@ -3,7 +3,7 @@ package xls
|
|||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
"log"
|
||||||
"github.com/extrame/ole2"
|
"github.com/extrame/ole2"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -51,6 +51,8 @@ func OpenReader(reader io.ReadSeeker, charset string) (wb *WorkBook, err error)
|
|||||||
if book != nil {
|
if book != nil {
|
||||||
wb = newWorkBookFromOle2(ole.OpenFile(book, root))
|
wb = newWorkBookFromOle2(ole.OpenFile(book, root))
|
||||||
return
|
return
|
||||||
|
} else {
|
||||||
|
log.Panic("book == nil")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user