From 9b5620d52804db8b75bc4da1b3012a8d6ebac10e Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Mon, 22 Jan 2024 06:19:03 +0700 Subject: [PATCH] Minor change --- echartsgoja.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/echartsgoja.go b/echartsgoja.go index 7450b99..f8879a1 100644 --- a/echartsgoja.go +++ b/echartsgoja.go @@ -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()