diff --git a/pkg/kubectl/cmd/top_node.go b/pkg/kubectl/cmd/top_node.go index e432a457622..b0095492b39 100644 --- a/pkg/kubectl/cmd/top_node.go +++ b/pkg/kubectl/cmd/top_node.go @@ -97,7 +97,6 @@ func NewCmdTopNode(f cmdutil.Factory, out io.Writer) *cobra.Command { } func (o *TopNodeOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string, out io.Writer) error { - var err error if len(args) == 1 { o.ResourceName = args[0] } else if len(args) > 1 {