Skip to content

Commit

Permalink
Merge pull request OpenUserJS#903 from Martii/Issue-126postFixConsoleMsg
Browse files Browse the repository at this point in the history
Post fix typo

Auto-merge
  • Loading branch information
Martii committed Feb 23, 2016
2 parents 09f174c + f81e591 commit 0633615
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/remove.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ function remove(aModel, aContent, aUser, aReason, aAutomated, aCallback) {
aContent.remove(function (aErr) {
if (aErr) {
console.error('Failed to remove', aModel.modelName);
aCallback(aErr);
aCallback(aErr); // NOTE: Same as `true` but specific e.g. stop all removal(s)
return;
}

if (aModel.modelName === 'User') {
aCallback(true); // NOTE: Stop any series removals
aCallback(true); // NOTE: Stop any series removals and done
} else {
aCallback(null); // NOTE: Continue any series and non-User single removals
}
Expand All @@ -128,7 +128,7 @@ exports.remove = function (aModel, aContent, aUser, aReason, aCallback) {
if (aModel.modelName !== 'User') {
remove(aModel, aContent, aUser, aReason, false, function (aErr) {
if (aErr) {
console.warn('Failed to remove User\n', aErr);
console.warn('Failed to remove', aModel.modelName, '\n', aErr);
aCallback(false);
return;
}
Expand Down

0 comments on commit 0633615

Please sign in to comment.