mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 16:30:34 +01:00
no need for return
This commit is contained in:
@@ -141,8 +141,7 @@ helpers.hasEnoughReputationFor = function(privilege, uid, callback) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Does not satisfy any of those thresholds?
|
callback(null, false);
|
||||||
return callback(null, false);
|
|
||||||
} else {
|
} else {
|
||||||
callback(null, reputation >= parseInt(meta.config[privilege], 10));
|
callback(null, reputation >= parseInt(meta.config[privilege], 10));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user