From cba113a2b00395af508c989c5df8cb487489fd13 Mon Sep 17 00:00:00 2001 From: yflory <yann.flory@xwiki.com> Date: Tue, 18 Jul 2017 15:52:46 +0200 Subject: [PATCH] Lint --- www/common/common-messaging.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/common/common-messaging.js b/www/common/common-messaging.js index af7cdb1a3..51777b607 100644 --- a/www/common/common-messaging.js +++ b/www/common/common-messaging.js @@ -618,13 +618,13 @@ define([ var keyStr = parsed.hashData.key; var cryptor = Crypto.createEditCryptor(keyStr); var key = cryptor.cryptKey; - var decryptMsg + var decryptMsg; try { decryptMsg = Crypto.decrypt(message, key); - } catch () { + } catch (e) { // If we can't decrypt, it means it is not a friend request message } - if (!decrypMsg) { return; } + if (!decryptMsg) { return; } // Parse msg = JSON.parse(decryptMsg); if (msg[1] !== parsed.hashData.channel) { return; }