Skip to content

Commit

Permalink
vulndb/govulncheck: avoid printing redundant newlines
Browse files Browse the repository at this point in the history
For golang/go#49350

Change-Id: I6d3c50f56a61e666235e6d2e0ba3231768575218
Reviewed-on: https://go-review.googlesource.com/c/exp/+/361854
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Zvonimir Pavlinovic <zpavlinovic@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
  • Loading branch information
zpavlinovic committed Nov 5, 2021
1 parent 83d5112 commit 14c7236
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vulndb/govulncheck/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ func init() {
}

func main() {
flag.Usage = func() { fmt.Fprintln(os.Stderr, usage) }
flag.Usage = func() { fmt.Fprint(os.Stderr, usage) }
flag.Parse()

if len(flag.Args()) == 0 {
fmt.Fprintln(os.Stderr, usage)
fmt.Fprint(os.Stderr, usage)
os.Exit(1)
}

Expand Down

0 comments on commit 14c7236

Please sign in to comment.