Skip to content

Commit

Permalink
fix: golang ci lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed May 7, 2024
1 parent 148bba1 commit 1782672
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ var rootCmd = &cobra.Command{
}

func Execute(ctx context.Context) {
rootCmd.ParseFlags(os.Args)
verbose, _ := rootCmd.PersistentFlags().GetBool("verbose")
verbose := false

if err := rootCmd.ParseFlags(os.Args); err != nil {
verbose, _ = rootCmd.PersistentFlags().GetBool("verbose")
}

ctx = logging.WithLogger(ctx, logging.NewLogger(verbose))
accountApi.SetUserAgent("shopware-cli/" + version)
Expand Down

0 comments on commit 1782672

Please sign in to comment.