Browse Source

avoid a silly typeError in the event of an error

master
ansuz 9 months ago
parent
commit
adfd1eaaa2
1 changed files with 1 additions and 1 deletions
  1. 2
      lib/storage/file.js

2
lib/storage/file.js

@ -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);
},

Loading…
Cancel
Save