fix(action): return nil if no errors occurred

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
pull/6191/head
Matthew Fisher 5 years ago
parent affd77558f
commit 6e7f5e64a0
No known key found for this signature in database
GPG Key ID: 92AA783CBAAE8E3B

@ -262,7 +262,9 @@ func deleteHookByPolicy(client kube.Interface, h *release.Hook, policy string) e
return errors.Wrapf(err, "unable to build kubernetes object for deleting hook %s", h.Path)
}
_, errs := client.Delete(resources)
return errors.New(joinErrors(errs))
if len(errs) > 0 {
return errors.New(joinErrors(errs))
}
}
return nil
}

Loading…
Cancel
Save