Skip to content

Commit

Permalink
prevent double-printing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
brianstrauch committed Jul 11, 2021
1 parent 7dccf57 commit 6a76301
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ func main() {
root.Flags().BoolP("help", "h", false, "Help for Spotify CLI.")
root.Flags().BoolP("version", "v", false, "Version for Spotify CLI.")

err := root.Execute()
cobra.CheckErr(err)
_ = root.Execute()
}

func promptUpdate(cmd *cobra.Command, _ []string) error {
Expand Down

0 comments on commit 6a76301

Please # to comment.