Fix double callback invocation in cleanupBackup

This commit is contained in:
Girish Ramakrishnan
2018-01-15 20:08:55 -08:00
parent ab5b754c22
commit 56f4cbe44a
+1 -1
View File
@@ -841,7 +841,7 @@ function cleanupBackup(backupConfig, backup, callback) {
function done(error) {
if (error) {
debug('cleanupBackup: error removing backup %j : %s', backup, error.message);
callback();
return callback();
}
// prune empty directory if possible