mirror of https://github.com/xwiki-labs/cryptpad
avoid a silly typeError in the event of an error
This commit is contained in:
parent
834c96a4fc
commit
adfd1eaaa2
|
@ -1044,7 +1044,7 @@ module.exports.create = function (conf, _cb) {
|
||||||
|
|
||||||
getWeakLock: function (channelName, _cb) {
|
getWeakLock: function (channelName, _cb) {
|
||||||
var cb = Util.once(Util.mkAsync(_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);
|
schedule.unordered(channelName, cb);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue