From 479b76f848ac7d64b46447108d9d9a18b3a66f5c Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 24 Mar 2020 17:40:07 -0400 Subject: [PATCH] lint compliance --- lib/commands/core.js | 4 ---- lib/workers/check-signature.js | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/commands/core.js b/lib/commands/core.js index e3ec3469b..f4e6a9f70 100644 --- a/lib/commands/core.js +++ b/lib/commands/core.js @@ -5,10 +5,6 @@ const Util = require("../common-util"); const escapeKeyCharacters = Util.escapeKeyCharacters; //const { fork } = require('child_process'); -/* Use Nacl for checking signatures of messages */ -const Nacl = require("tweetnacl/nacl-fast"); - - Core.DEFAULT_LIMIT = 50 * 1024 * 1024; Core.SESSION_EXPIRATION_TIME = 60 * 1000; diff --git a/lib/workers/check-signature.js b/lib/workers/check-signature.js index 37fca3783..846f41d3b 100644 --- a/lib/workers/check-signature.js +++ b/lib/workers/check-signature.js @@ -66,7 +66,7 @@ const checkDetachedSignature = function (signedMsg, signature, publicKey) { COMMANDS.DETACHED = function (data, cb) { try { - checkDetachedSignature(data.msg, data.sig, data.key) + checkDetachedSignature(data.msg, data.sig, data.key); } catch (err) { return void cb(err && err.message); }