mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
ESlint no-plusplus
and no-empty, space-unary-ops
This commit is contained in:
@@ -40,7 +40,7 @@ module.exports = function (privileges) {
|
||||
|
||||
var privileges = [];
|
||||
|
||||
for (var i = 0; i < pids.length; ++i) {
|
||||
for (var i = 0; i < pids.length; i += 1) {
|
||||
var isAdminOrMod = results.isAdmin || results.isModerator[i];
|
||||
var editable = isAdminOrMod || (results.isOwner[i] && results['posts:edit'][i]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user