Remove redundant err definition

This commit is contained in:
YuxiJin-tobeyjin 2017-08-17 10:05:23 +08:00
parent c1da492ad2
commit f579e395b5

View File

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