From 50d0a40155b1b2828e6e9beda99bf79ecdf8ed0b Mon Sep 17 00:00:00 2001 From: SataQiu <1527062125@qq.com> Date: Fri, 6 Nov 2020 20:53:58 +0800 Subject: [PATCH] kubeadm: fix the lint failure where return value is not checked Signed-off-by: SataQiu <1527062125@qq.com> --- cmd/kubeadm/app/cmd/phases/workflow/runner.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/kubeadm/app/cmd/phases/workflow/runner.go b/cmd/kubeadm/app/cmd/phases/workflow/runner.go index 60cd89e980a..2a27b89971e 100644 --- a/cmd/kubeadm/app/cmd/phases/workflow/runner.go +++ b/cmd/kubeadm/app/cmd/phases/workflow/runner.go @@ -338,8 +338,7 @@ func (e *Runner) BindToCommand(cmd *cobra.Command) { RunE: func(cmd *cobra.Command, args []string) error { // if the phase has subphases, print the help and exits if len(p.Phases) > 0 { - cmd.Help() - return nil + return cmd.Help() } // overrides the command triggering the Runner using the phaseCmd