lint compliance

This commit is contained in:
yflory
2019-12-09 16:02:24 +01:00
parent 73a03e8d80
commit 111141628c
2 changed files with 5 additions and 5 deletions

View File

@@ -220,8 +220,9 @@ define([
ctx.store.anon_rpc.send("IS_NEW_CHANNEL", channel, function (e, response) {
if (e) { return void cb({error: e}); }
var isNew;
if (response && response.length && typeof(response[0]) === 'boolean') {
var isNew = response[0];
isNew = response[0];
} else {
cb({error: 'INVALID_RESPONSE'});
}