From 8cfc1b5425e5884193fa88f3d96dce680ea2514c Mon Sep 17 00:00:00 2001 From: Will Norris Date: Wed, 20 Apr 2022 13:41:07 -0700 Subject: [PATCH] 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. --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 98fc227..b2ef240 100644 --- a/main.go +++ b/main.go @@ -46,6 +46,7 @@ The pattern argument can be provided multiple times, and may also refer to single files. Flags: + ` var ( @@ -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")