dont crash sortedSetIncryBy on redis if no callback is supplied

This commit is contained in:
Barış Soner Uşaklı
2017-11-02 08:14:35 -04:00
parent 3853c741d3
commit 43f9c3224f
3 changed files with 6 additions and 5 deletions

View File

@@ -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;