From 363608287ffae89f6aa03942e26bf0bacbdc03fc Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 31 Jul 2018 09:59:58 -0400 Subject: [PATCH] fixes and linting --- lib/core/processes/processManager.js | 2 +- lib/modules/blockchain_process/blockchain.js | 4 ---- lib/modules/blockchain_process/index.js | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/core/processes/processManager.js b/lib/core/processes/processManager.js index 2556acb5a..dbb4450d2 100644 --- a/lib/core/processes/processManager.js +++ b/lib/core/processes/processManager.js @@ -16,7 +16,7 @@ class ProcessManager { self.events.setCommandHandler('processes:launch', (name, cb) => { let process = self.processes[name]; - if (process.state != 'unstarted') { + if (process.state !== 'unstarted') { return cb(); } process.state = 'starting'; diff --git a/lib/modules/blockchain_process/blockchain.js b/lib/modules/blockchain_process/blockchain.js index f0753324c..61f93b402 100644 --- a/lib/modules/blockchain_process/blockchain.js +++ b/lib/modules/blockchain_process/blockchain.js @@ -273,10 +273,6 @@ Blockchain.prototype.initChainAndGetAddress = function(callback) { next(err); }); }, - function copy(next) { - // copy mining script - fs.copy(fs.embarkPath("js"), ".embark/" + self.env + "/js", {overwrite: true}, next); - }, function listAccounts(next) { self.runCommand(self.client.listAccountsCommand(), {}, (err, stdout, _stderr) => { if (err || stdout === undefined || stdout.match(/{(\w+)}/) === null || stdout.indexOf("Fatal") >= 0) { diff --git a/lib/modules/blockchain_process/index.js b/lib/modules/blockchain_process/index.js index f2bb352a9..5f5636520 100644 --- a/lib/modules/blockchain_process/index.js +++ b/lib/modules/blockchain_process/index.js @@ -50,7 +50,7 @@ class BlockchainModule { const {host, port, type, protocol} = self.contractsConfig.deployment; utils.pingEndpoint(host, port, type, protocol, self.blockchainConfig.wsOrigins.split(',')[0], next); } - ], function (err, _result) { + ], function (err) { if (err === true || err === undefined) { return cb(true); }