Fix incorrect return when err != nil

Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
This commit is contained in:
Andy Goldstein
2018-03-05 10:57:23 -05:00
parent 9d03315558
commit 6930c846e5

View File

@@ -99,7 +99,7 @@ func (o *DeleteOptions) Complete(f client.Factory, args []string) error {
var err error
o.client, err = f.Client()
if err != nil {
return nil
return err
}
o.namespace = f.Namespace()