From 792e7dff5ba7d4f826a7aa0b694bc08c0e515e88 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 21 Aug 2018 16:12:57 -0400 Subject: [PATCH] lint is king --- lib/modules/blockchain_process/blockchain.js | 4 +--- lib/modules/whisper/index.js | 8 -------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/lib/modules/blockchain_process/blockchain.js b/lib/modules/blockchain_process/blockchain.js index ac46c8add..c50c237b7 100644 --- a/lib/modules/blockchain_process/blockchain.js +++ b/lib/modules/blockchain_process/blockchain.js @@ -10,8 +10,6 @@ const DevFunds = require('./dev_funds.js'); const {defaultHost, dockerHostSwap} = require('../../utils/host'); -const {defaultHost, dockerHostSwap} = require('../../utils/host'); - /*eslint complexity: ["error", 36]*/ var Blockchain = function(options) { this.blockchainConfig = options.blockchainConfig; @@ -217,7 +215,7 @@ Blockchain.prototype.createFundAndUnlockAccounts = function(cb) { cb(err); }); }); -} +}; Blockchain.prototype.readyCallback = function() { if (this.onReadyCallback) { diff --git a/lib/modules/whisper/index.js b/lib/modules/whisper/index.js index a4a5f641f..3ce7ddfa0 100644 --- a/lib/modules/whisper/index.js +++ b/lib/modules/whisper/index.js @@ -81,14 +81,6 @@ class Whisper { type: connection.type || 'ws' }); - if (keys.symmetricKey) { - config.symKey = keys.symmetricKey; - } - - if (keys.privateKey) { - config.privateKey = keys.privateKey; - } - config = JSON.stringify(config); let code = "\nEmbarkJS.Messages.setProvider('whisper'," + config + ");";