From 182fab0fd6ebb8853d9f9e3f6afe7fcdd94ce9a2 Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Thu, 7 Nov 2019 15:34:25 +1030 Subject: [PATCH] spatial/barneshut: clean up lint --- spatial/barneshut/galaxy_example_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spatial/barneshut/galaxy_example_test.go b/spatial/barneshut/galaxy_example_test.go index cc6a6bf9..2e995e72 100644 --- a/spatial/barneshut/galaxy_example_test.go +++ b/spatial/barneshut/galaxy_example_test.go @@ -5,6 +5,8 @@ package barneshut_test import ( + "log" + "golang.org/x/exp/rand" "gonum.org/v1/gonum/spatial/barneshut" @@ -56,7 +58,10 @@ func Example_galaxy() { // this step may be omitted and ForceOn will // perform the naive quadratic calculation // without building the data structure. - plane.Reset() + err := plane.Reset() + if err != nil { + log.Fatal(err) + } // Calculate the force vectors using the theta // parameter...