Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
probablycorey committed May 20, 2020
1 parent e9d6e13 commit e5b78d3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cmd/gen-docs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 {
Expand Down

0 comments on commit e5b78d3

Please sign in to comment.