Skip to content

Commit

Permalink
chore: fix govet error on trailing newline
Browse files Browse the repository at this point in the history
conversation in golang/go#18085, but basically a single trailing newline
is a govet error, but two are not.
  • Loading branch information
willnorris committed Apr 21, 2022
1 parent 758687b commit 8cfc1b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ The pattern argument can be provided multiple times, and may also refer
to single files.
Flags:
`

var (
Expand All @@ -63,7 +64,7 @@ var (

func init() {
flag.Usage = func() {
fmt.Fprintln(os.Stderr, helpText)
fmt.Fprint(os.Stderr, helpText)
flag.PrintDefaults()
}
flag.Var(&skipExtensionFlags, "skip", "[deprecated: see -ignore] file extensions to skip, for example: -skip rb -skip go")
Expand Down

0 comments on commit 8cfc1b5

Please sign in to comment.