From e5b78d3342c4de75d67f449861bb332bc03f5bd6 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 20 May 2020 11:21:05 -0700 Subject: [PATCH] Fix lint errors --- cmd/gen-docs/main.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cmd/gen-docs/main.go b/cmd/gen-docs/main.go index c7bb84afa..92581d07a 100644 --- a/cmd/gen-docs/main.go +++ b/cmd/gen-docs/main.go @@ -31,11 +31,10 @@ func main() { os.Exit(1) } - if(*dir == "") { + if *dir == "" { fatal("no dir set") } - err := os.MkdirAll(*dir, 0755) if err != nil { fatal(err) @@ -48,13 +47,12 @@ func main() { } } - if *manPage { header := &doc.GenManHeader{ Title: "gh", Section: "1", - Source: "", //source and manual are just put at the top of the manpage, before name - Manual: "", //if source is an empty string, it's set to "Auto generated by spf13/cobra" + Source: "", //source and manual are just put at the top of the manpage, before name + Manual: "", //if source is an empty string, it's set to "Auto generated by spf13/cobra" } err = doc.GenManTree(command.RootCmd, header, *dir) if err != nil {