Add staticcheck to CI (#171)

This commit is contained in:
Filippo Valsorda
2019-07-05 01:41:23 -03:00
committed by GitHub
parent 4d2ab596e7
commit 1f0796c926
2 changed files with 5 additions and 4 deletions

View File

@@ -92,13 +92,13 @@ func main() {
p12FileFlag = flag.String("p12-file", "", "")
)
flag.Usage = func() {
fmt.Fprintf(flag.CommandLine.Output(), shortUsage)
fmt.Fprint(flag.CommandLine.Output(), shortUsage)
fmt.Fprintln(flag.CommandLine.Output(), `For more options, run "mkcert -help".`)
}
flag.Parse()
if *helpFlag {
fmt.Fprintf(flag.CommandLine.Output(), shortUsage)
fmt.Fprintf(flag.CommandLine.Output(), advancedUsage)
fmt.Fprint(flag.CommandLine.Output(), shortUsage)
fmt.Fprint(flag.CommandLine.Output(), advancedUsage)
return
}
if *carootFlag {