Skip to content

Commit

Permalink
update to reflectx.AnyIsNil -> IsNil
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Nov 25, 2024
1 parent 35cd77e commit 29e40fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plot/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package plot

import (
"fmt"
"reflect"

"cogentcore.org/core/base/errors"
"cogentcore.org/core/base/reflectx"
Expand Down Expand Up @@ -155,7 +156,7 @@ func NewTablePlot(dt *table.Table) (*Plot, error) {
}
}
pl := pt.New(data)
if reflectx.AnyIsNil(pl) {
if reflectx.IsNil(reflect.ValueOf(pl)) {
err = fmt.Errorf("plot.NewTablePlot: error in creating plotter type: %q", ptyp)
errs = append(errs, err)
continue
Expand Down

0 comments on commit 29e40fa

Please sign in to comment.