From adfd1eaaa2d6b1490ad155ee644d8d1a295e3736 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 2 Apr 2020 22:57:57 -0400 Subject: [PATCH] avoid a silly typeError in the event of an error --- lib/storage/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/storage/file.js b/lib/storage/file.js index 994680218..255f74016 100644 --- a/lib/storage/file.js +++ b/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); },