X Tutup
Skip to content

Commit e5b78d3

Browse files
committed
Fix lint errors
1 parent e9d6e13 commit e5b78d3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cmd/gen-docs/main.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ func main() {
3131
os.Exit(1)
3232
}
3333

34-
if(*dir == "") {
34+
if *dir == "" {
3535
fatal("no dir set")
3636
}
3737

38-
3938
err := os.MkdirAll(*dir, 0755)
4039
if err != nil {
4140
fatal(err)
@@ -48,13 +47,12 @@ func main() {
4847
}
4948
}
5049

51-
5250
if *manPage {
5351
header := &doc.GenManHeader{
5452
Title: "gh",
5553
Section: "1",
56-
Source: "", //source and manual are just put at the top of the manpage, before name
57-
Manual: "", //if source is an empty string, it's set to "Auto generated by spf13/cobra"
54+
Source: "", //source and manual are just put at the top of the manpage, before name
55+
Manual: "", //if source is an empty string, it's set to "Auto generated by spf13/cobra"
5856
}
5957
err = doc.GenManTree(command.RootCmd, header, *dir)
6058
if err != nil {

0 commit comments

Comments
 (0)
X Tutup