chore: fix govet error on trailing newline
conversation in golang/go#18085, but basically a single trailing newline is a govet error, but two are not.
This commit is contained in:
3
main.go
3
main.go
@@ -46,6 +46,7 @@ The pattern argument can be provided multiple times, and may also refer
|
|||||||
to single files.
|
to single files.
|
||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
|
|
||||||
`
|
`
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -63,7 +64,7 @@ var (
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
flag.Usage = func() {
|
flag.Usage = func() {
|
||||||
fmt.Fprintln(os.Stderr, helpText)
|
fmt.Fprint(os.Stderr, helpText)
|
||||||
flag.PrintDefaults()
|
flag.PrintDefaults()
|
||||||
}
|
}
|
||||||
flag.Var(&skipExtensionFlags, "skip", "[deprecated: see -ignore] file extensions to skip, for example: -skip rb -skip go")
|
flag.Var(&skipExtensionFlags, "skip", "[deprecated: see -ignore] file extensions to skip, for example: -skip rb -skip go")
|
||||||
|
|||||||
Reference in New Issue
Block a user