fix: fix init fail for empty series list
This commit is contained in:
parent
c862467a5b
commit
b56d0c5460
1 changed files with 3 additions and 0 deletions
|
|
@ -132,6 +132,9 @@ type Series struct {
|
|||
type SeriesList []Series
|
||||
|
||||
func (sl SeriesList) init() {
|
||||
if len(sl) == 0 {
|
||||
return
|
||||
}
|
||||
if sl[len(sl)-1].index != 0 {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue