style: remove redundant judgment

Signed-off-by: cndoit18 <cndoit18@outlook.com>
This commit is contained in:
cndoit18
2022-07-29 18:25:05 +08:00
parent 26842bb0c8
commit ec43037d0f
26 changed files with 26 additions and 112 deletions

View File

@@ -138,10 +138,7 @@ func (o *ConvertOptions) Complete(f cmdutil.Factory, cmd *cobra.Command) (err er
// build the printer
o.Printer, err = o.PrintFlags.ToPrinter()
if err != nil {
return err
}
return nil
return err
}
// RunConvert implements the generic Convert command