mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
removed helpers.done
This commit is contained in:
@@ -31,12 +31,6 @@ helpers.valueToString = function(value) {
|
||||
return value.toString();
|
||||
};
|
||||
|
||||
helpers.done = function(cb) {
|
||||
return function(err, result) {
|
||||
if (typeof cb === 'function') {
|
||||
cb(err, result);
|
||||
}
|
||||
};
|
||||
};
|
||||
helpers.noop = function() {};
|
||||
|
||||
module.exports = helpers;
|
||||
Reference in New Issue
Block a user