diff --git a/cmd/daserver/daserver.go b/cmd/daserver/daserver.go index 2d27d75dbd..a9616de7ff 100644 --- a/cmd/daserver/daserver.go +++ b/cmd/daserver/daserver.go @@ -131,7 +131,7 @@ func startup() error { if err != nil { fmt.Printf("\nrevision: %v, vcs.time: %v\n", vcsRevision, vcsTime) printSampleUsage() - if err != nil && !strings.Contains(err.Error(), "help requested") { + if !strings.Contains(err.Error(), "help requested") { fmt.Printf("%s\n", err.Error()) } return nil diff --git a/cmd/nitro/nitro.go b/cmd/nitro/nitro.go index 69807ee28b..d04df0d5ae 100644 --- a/cmd/nitro/nitro.go +++ b/cmd/nitro/nitro.go @@ -119,7 +119,7 @@ func main() { if err != nil { fmt.Printf("\nrevision: %v, vcs.time: %v\n", vcsRevision, vcsTime) printSampleUsage(os.Args[0]) - if err != nil && !strings.Contains(err.Error(), "help requested") { + if !strings.Contains(err.Error(), "help requested") { fmt.Printf("%s\n", err.Error()) }