mirror of
https://github.com/gonum/gonum.git
synced 2025-10-21 14:19:35 +08:00
spatial/{kdtree,vptree}: fix lint warnings
Identified by staticcheck.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user