lint compliance

This commit is contained in:
ansuz
2017-07-13 08:36:55 +02:00
parent 575d4612f9
commit a756faf818
2 changed files with 13 additions and 13 deletions

2
rpc.js
View File

@@ -686,7 +686,7 @@ var clearOwnedChannel = function (Env, channelId, unsafeKey, cb) {
}
Env.msgStore.getChannelMetadata(channelId, function (e, metadata) {
if (e) { return Respond(e); }
if (e) { return cb(e); }
if (!(metadata && Array.isArray(metadata.owners))) { return void cb('E_NO_OWNERS'); }
// Confirm that the channel is owned by the user is question
if (metadata.owners.indexOf(unsafeKey) === -1) {