spatial/barneshut: clean up lint

This commit is contained in:
Dan Kortschak
2019-11-07 15:34:25 +10:30
parent 40a79689c0
commit 182fab0fd6

View File

@@ -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...