avoid a silly typeError in the event of an error

This commit is contained in:
ansuz 2020-04-02 22:57:57 -04:00
parent 834c96a4fc
commit adfd1eaaa2
1 changed files with 1 additions and 1 deletions

View File

@ -1044,7 +1044,7 @@ module.exports.create = function (conf, _cb) {
getWeakLock: function (channelName, _cb) {
var cb = Util.once(Util.mkAsync(_cb));
if (!isValidChannelId(channelName)) { return void cb(new Error('EINVAL')); }
//if (!isValidChannelId(channelName)) { return void cb(new Error('EINVAL')); } // XXX
schedule.unordered(channelName, cb);
},