ESlint comma-dangle

This commit is contained in:
Peter Jaszkowiak
2017-02-17 19:31:21 -07:00
parent aa64ec7db1
commit bc1d70c126
345 changed files with 1974 additions and 1978 deletions

View File

@@ -37,13 +37,13 @@ module.exports = function (Posts) {
},
function (next) {
topics.updateTeaser(postData.tid, next);
}
},
], next);
},
function (results, next) {
plugins.fireHook('action:post.delete', pid);
next(null, postData);
}
},
], callback);
};
@@ -74,13 +74,13 @@ module.exports = function (Posts) {
},
function (next) {
topics.updateTeaser(postData.tid, next);
}
},
], next);
},
function (results, next) {
plugins.fireHook('action:post.restore', _.clone(postData));
next(null, postData);
}
},
], callback);
};
@@ -109,7 +109,7 @@ module.exports = function (Posts) {
} else {
next();
}
}
},
], callback);
}
@@ -146,7 +146,7 @@ module.exports = function (Posts) {
},
function (next) {
Posts.dismissFlag(pid, next);
}
},
], function (err) {
if (err) {
return next(err);
@@ -154,7 +154,7 @@ module.exports = function (Posts) {
plugins.fireHook('action:post.purge', pid);
db.delete('post:' + pid, next);
});
}
},
], callback);
};
@@ -169,7 +169,7 @@ module.exports = function (Posts) {
db.sortedSetsRemove([
'tid:' + postData.tid + ':posts',
'tid:' + postData.tid + ':posts:votes',
'uid:' + postData.uid + ':posts'
'uid:' + postData.uid + ':posts',
], pid, next);
},
function (next) {
@@ -203,9 +203,9 @@ module.exports = function (Posts) {
},
function (next) {
notifications.rescind('new_post:tid:' + postData.tid + ':pid:' + pid + ':uid:' + postData.uid, next);
}
},
], next);
}
},
], function (err) {
callback(err);
});
@@ -252,7 +252,7 @@ module.exports = function (Posts) {
},
downvoters: function (next) {
db.getSetMembers('pid:' + pid + ':downvote', next);
}
},
}, function (err, results) {
if (err) {
return callback(err);
@@ -275,7 +275,7 @@ module.exports = function (Posts) {
},
function (next) {
db.deleteAll(['pid:' + pid + ':upvote', 'pid:' + pid + ':downvote'], next);
}
},
], callback);
});
}
@@ -290,7 +290,7 @@ module.exports = function (Posts) {
}
async.parallel([
async.apply(db.sortedSetRemove, 'pid:' + toPid + ':replies', pid),
async.apply(db.decrObjectField, 'post:' + toPid, 'replies')
async.apply(db.decrObjectField, 'post:' + toPid, 'replies'),
], callback);
});
}