mirror of
https://github.com/gonum/gonum.git
synced 2025-10-21 22:29:30 +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()
|
defer f.Close()
|
||||||
if dotString == "" {
|
if dotString == "" {
|
||||||
fmt.Fprintf(f, dot(t, label))
|
fmt.Fprint(f, dot(t, label))
|
||||||
} else {
|
} else {
|
||||||
fmt.Fprintf(f, dotString)
|
fmt.Fprint(f, dotString)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@@ -549,9 +549,9 @@ func dotFile(t *Tree, label, dotString string) (err error) {
|
|||||||
}
|
}
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
if dotString == "" {
|
if dotString == "" {
|
||||||
fmt.Fprintf(f, dot(t, label))
|
fmt.Fprint(f, dot(t, label))
|
||||||
} else {
|
} else {
|
||||||
fmt.Fprintf(f, dotString)
|
fmt.Fprint(f, dotString)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user