Code clean up

Signed-off-by: Carlisia <carlisiac@vmware.com>
This commit is contained in:
Carlisia
2019-04-18 14:03:43 -07:00
parent 01d0b026e9
commit 05a88345e5
4 changed files with 7 additions and 9 deletions

View File

@@ -158,8 +158,7 @@ func (c *backupController) processBackup(key string) error {
log.Debug("Running processBackup")
ns, name, err := cache.SplitMetaNamespaceKey(key)
if err != nil {
logContext.WithError(err).Errorf("error splitting key")
return nil
return errors.Wrap(err, "error splitting queue key")
}
log.Debug("Getting backup")