This is an automated email from the ASF dual-hosted git repository. lburgazzoli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 99af3a9d06f10f6e277fe67b53fbbdb084a34837 Author: lburgazzoli <[email protected]> AuthorDate: Wed Dec 11 10:49:18 2019 +0100 chore(lint): fix findings --- pkg/cmd/root.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/root.go b/pkg/cmd/root.go index bbf7acc..c553c2a 100644 --- a/pkg/cmd/root.go +++ b/pkg/cmd/root.go @@ -71,7 +71,9 @@ func NewKamelCommand(ctx context.Context) (*cobra.Command, error) { cmd.AddCommand(newCmdOperator()) cmd.AddCommand(newCmdBuilder(&options)) - bindPFlagsHierarchy(&cmd) + if err := bindPFlagsHierarchy(&cmd); err != nil { + return nil, err + } configName := os.Getenv("KAMEL_CONFIG_NAME") if configName != "" {
