commit | bc864be25151710e5d1c992993e31b5543e779e1 | [log] [tgz] |
---|---|---|
author | Xùdōng Yáng <wyverald@gmail.com> | Tue Jan 26 17:14:01 2021 +0100 |
committer | GitHub <noreply@github.com> | Tue Jan 26 11:14:01 2021 -0500 |
tree | 36388a1e4c9c15eaf2dbc720fa7d173aa134eff6 | |
parent | 28488fade247cf7c918bd994f16b1f38b4b7c5bc [diff] |
Remove an unused Thread in the sequential load example (#345)
diff --git a/starlark/example_test.go b/starlark/example_test.go index 4bd0c74..5feca38 100644 --- a/starlark/example_test.go +++ b/starlark/example_test.go
@@ -116,8 +116,7 @@ return e.globals, e.err } - thread := &starlark.Thread{Name: "exec c.star", Load: load} - globals, err := load(thread, "c.star") + globals, err := load(nil, "c.star") if err != nil { log.Fatal(err) }