cmd/gogio: fix a couple of staticcheck positives

Spotted the javac one by chance when reading the code, so I ran the tool
and fixed another small bug while at it.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
This commit is contained in:
Daniel Martí
2019-11-03 19:14:16 +00:00
committed by Elias Naur
parent 2bee95358a
commit ec0c2498a1
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ type buildInfo struct {
func main() {
flag.Usage = func() {
fmt.Fprintf(os.Stderr, mainUsage)
fmt.Fprint(os.Stderr, mainUsage)
}
flag.Parse()
if err := mainErr(); err != nil {