spatial/{kdtree,vptree}: fix lint warnings
Identified by staticcheck.
MODIFY
spatial/kdtree/kdtree_test.go
spatial/kdtree/kdtree_test.go
@@ -660,9 +660,9 @@ func dotFile(t *Tree, label, dotString string) (err error) {
}
defer f.Close()
if dotString == "" {
- fmt.Fprintf(f, dot(t, label))
+ fmt.Fprint(f, dot(t, label))
} else {
- fmt.Fprintf(f, dotString)
+ fmt.Fprint(f, dotString)
}
return
}

MODIFY
spatial/vptree/vptree_test.go
spatial/vptree/vptree_test.go
@@ -549,9 +549,9 @@ func dotFile(t *Tree, label, dotString string) (err error) {
}
defer f.Close()
if dotString == "" {
- fmt.Fprintf(f, dot(t, label))
+ fmt.Fprint(f, dot(t, label))
} else {
- fmt.Fprintf(f, dotString)
+ fmt.Fprint(f, dotString)
}
return
}

spatial/{kdtree,vptree}: fix lint warnings

Identified by staticcheck.