mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Merge pull request #50816 from YuxiJin-tobeyjin/errdefine
Automatic merge from submit-queue (batch tested with PRs 51148, 50816, 49741, 50858, 51223) Remove redundant err definition **What this PR does / why we need it**: Remove redundant err definition,err is defined by using "err :=" at line 107 **Release note**: NONE ```release-note ```
This commit is contained in:
commit
ca6348eeb7
@ -112,7 +112,6 @@ func NewCmdTopNode(f cmdutil.Factory, options *TopNodeOptions, out io.Writer) *c
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (o *TopNodeOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string, out io.Writer) error {
|
func (o *TopNodeOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string, out io.Writer) error {
|
||||||
var err error
|
|
||||||
if len(args) == 1 {
|
if len(args) == 1 {
|
||||||
o.ResourceName = args[0]
|
o.ResourceName = args[0]
|
||||||
} else if len(args) > 1 {
|
} else if len(args) > 1 {
|
||||||
|
Loading…
Reference in New Issue
Block a user