mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
kubeadm: fix the lint failure where return value is not checked
Signed-off-by: SataQiu <1527062125@qq.com>
This commit is contained in:
parent
8f6ffb24df
commit
50d0a40155
@ -338,8 +338,7 @@ func (e *Runner) BindToCommand(cmd *cobra.Command) {
|
|||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
// if the phase has subphases, print the help and exits
|
// if the phase has subphases, print the help and exits
|
||||||
if len(p.Phases) > 0 {
|
if len(p.Phases) > 0 {
|
||||||
cmd.Help()
|
return cmd.Help()
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// overrides the command triggering the Runner using the phaseCmd
|
// overrides the command triggering the Runner using the phaseCmd
|
||||||
|
Loading…
Reference in New Issue
Block a user