mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
dont crash sortedSetIncryBy on redis if no callback is supplied
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
var helpers = {};
|
||||
var helpers = module.exports;
|
||||
|
||||
helpers.noop = function () {};
|
||||
|
||||
helpers.toMap = function (data) {
|
||||
var map = {};
|
||||
@@ -31,7 +33,3 @@ helpers.valueToString = function (value) {
|
||||
|
||||
return value.toString();
|
||||
};
|
||||
|
||||
helpers.noop = function () {};
|
||||
|
||||
module.exports = helpers;
|
||||
|
||||
Reference in New Issue
Block a user