Skip to content

Commit

Permalink
fix: golang linter
Browse files Browse the repository at this point in the history
  • Loading branch information
wowu committed Jul 20, 2022
1 parent 9a96d7f commit 403a91f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pro.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func main() {
Name: "auth",
ArgsUsage: "[gitlab|github]",
Usage: "Authorize GitLab or GitHub",
UsageText: fmt.Sprintf("pro auth gitlab\npro login github"),
UsageText: "pro auth gitlab\npro login github",
Action: func(c *cli.Context) error {
if c.NArg() != 1 {
fmt.Println("Please specify provider (github or gitlab)")
Expand Down Expand Up @@ -64,5 +64,9 @@ func main() {
},
}

app.Run(os.Args)
err := app.Run(os.Args)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
}

0 comments on commit 403a91f

Please sign in to comment.