Skip to content

Commit

Permalink
Merge pull request #841 from ophum/fix/cmd-client-nil-pointer-derefer…
Browse files Browse the repository at this point in the history
…ence

fix nil pointer dereference
  • Loading branch information
jromero authored Sep 22, 2020
2 parents 7e3612e + f437088 commit 9a2ac93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func initConfig() (config.Config, error) {
func initClient(logger logging.Logger, cfg config.Config) (pack.Client, error) {
client, err := pack.NewClient(pack.WithLogger(logger), pack.WithExperimental(cfg.Experimental))
if err != nil {
return *client, err
return pack.Client{}, err
}

return *client, nil
Expand Down

0 comments on commit 9a2ac93

Please sign in to comment.