mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +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?
|
||||
return callback(null, false);
|
||||
callback(null, false);
|
||||
} else {
|
||||
callback(null, reputation >= parseInt(meta.config[privilege], 10));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user