From 6c7b135f91a335d1a9e5aa0266fffc4287397c92 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 2 Oct 2017 18:58:18 +0200 Subject: [PATCH] lint compliance --- www/common/sframe-common-outer.js | 2 +- www/common/sframe-messenger-inner.js | 2 +- www/contacts/main.js | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/www/common/sframe-common-outer.js b/www/common/sframe-common-outer.js index fa441b9e1..f524b9bdf 100644 --- a/www/common/sframe-common-outer.js +++ b/www/common/sframe-common-outer.js @@ -407,7 +407,7 @@ define([ }); sframeChan.on('Q_CONTACTS_OPEN_FRIEND_CHANNEL', function (curvePublic, cb) { - messenger.openFriendChannel(curvePublic, function (e, data) { + messenger.openFriendChannel(curvePublic, function (e) { cb({ error: e, }); }); }); diff --git a/www/common/sframe-messenger-inner.js b/www/common/sframe-messenger-inner.js index 5d20b6f38..0511f8423 100644 --- a/www/common/sframe-messenger-inner.js +++ b/www/common/sframe-messenger-inner.js @@ -27,7 +27,7 @@ define([], function () { sFrameChan.on('EV_CONTACTS_JOIN', function (err, data) { if (err || data.error) { return void console.error(err || data.error); } _handlers.join.forEach(function (f) { - f(data.curvePublic, data.channel) + f(data.curvePublic, data.channel); }); }); sFrameChan.on('EV_CONTACTS_LEAVE', function (err, data) { diff --git a/www/contacts/main.js b/www/contacts/main.js index 544e3ef9c..f99e7d472 100644 --- a/www/contacts/main.js +++ b/www/contacts/main.js @@ -8,8 +8,6 @@ define([ ], function (nThen, ApiConfig, $, RequireConfig, SFCommonO) { var requireConfig = RequireConfig(); - var messenger; - // Loaded in load #2 nThen(function (waitFor) { $(waitFor());