From f7b61daff325eb9641ad977b6b1aaaf1bea76218 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 5 Jun 2020 12:08:43 +0200 Subject: [PATCH] lint compliance --- www/common/common-ui-elements.js | 1 - www/common/outer/team.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 37a5172db..acab5085b 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -296,7 +296,6 @@ define([ } } // If it's a team with edit right, add the pad directly - var team = teams[ed]; if (!team) { return; } sframeChan.query('Q_STORE_IN_TEAM', { href: href, diff --git a/www/common/outer/team.js b/www/common/outer/team.js index 92dc1deda..4b5c159ea 100644 --- a/www/common/outer/team.js +++ b/www/common/outer/team.js @@ -1585,10 +1585,10 @@ define([ // XXX maybe use something else than channel? var hash = Nacl.hash(Nacl.util.decodeUTF8(channel)); var seed = hash.slice(0,32); - var channel = Util.uint8ArrayToHex(hash.slice(32,48)); + var mailboxChannel = Util.uint8ArrayToHex(hash.slice(32,48)); var curvePair = Nacl.box.keyPair.fromSecretKey(seed); return { - channel: channel, + channel: mailboxChannel, viewed: [], keys: { curvePrivate: Nacl.util.encodeBase64(curvePair.secretKey),