Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshaw committed Jan 21, 2024
1 parent aebf125 commit 9b5620d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions echartsgoja.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,8 @@ func (vm *ECharts) Version() (string, error) {
if err := vm.init(); err != nil {
return "", err
}
r := goja.New()
var f func() (string, error)
if err := vm.run(r, "version", &f); err != nil {
if err := vm.run(goja.New(), "version", &f); err != nil {
return "", err
}
return f()
Expand Down

0 comments on commit 9b5620d

Please sign in to comment.