lint compliance

pull/1/head
yflory 4 years ago
parent 93ddf51564
commit d199da9563

@ -246,7 +246,7 @@ var factory = function (Cache) {
if (arrayBuffer) { if (arrayBuffer) {
var u8 = new Uint8Array(arrayBuffer); var u8 = new Uint8Array(arrayBuffer);
if (cacheKey) { if (cacheKey) {
return void Cache.setBlobCache(cacheKey, u8, function (err) { return void Cache.setBlobCache(cacheKey, u8, function () {
cb(null, u8); cb(null, u8);
}); });
} }

@ -75,8 +75,8 @@ define([
}); });
}; };
S.clearChannel = function (id, _cb) { S.clearChannel = function (id, cb) {
cb = Util.once(Util.mkAsync(_cb || function () {})); cb = Util.once(Util.mkAsync(cb || function () {}));
cache.removeItem(id, function () { cache.removeItem(id, function () {
cb(); cb();
}); });

@ -474,7 +474,8 @@ define([
return UI.errorLoadingScreen("Reload loop: empty chainpad for a non-empty channel"); return UI.errorLoadingScreen("Reload loop: empty chainpad for a non-empty channel");
} }
noCache = true; noCache = true;
sframeChan.event("Q_CORRUPTED_CACHE"); var sframeChan = common.getSframeChannel();
sframeChan.event("EV_CORRUPTED_CACHE");
}; };
var onCacheReady = function () { var onCacheReady = function () {
stateChange(STATE.DISCONNECTED); stateChange(STATE.DISCONNECTED);

Loading…
Cancel
Save