Merge pull request #96306 from SataQiu/small-fix-20201106

kubeadm: fix the lint failure where return value is not checked
This commit is contained in:
Kubernetes Prow Robot 2020-11-07 11:43:37 -08:00 committed by GitHub
commit 2570a9d94c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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