From e07d06fa4c24e1846479f9af1deaadc3b386f2c4 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sun, 8 Jul 2018 00:46:15 +0300 Subject: [PATCH] make linter happy --- lib/index.js | 1 - lib/modules/ipfs/index.js | 8 ++++---- lib/modules/storage/index.js | 1 - lib/modules/swarm/index.js | 4 ++-- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/index.js b/lib/index.js index 2166c5183..58710a86e 100644 --- a/lib/index.js +++ b/lib/index.js @@ -306,7 +306,6 @@ class Embark { let platform = engine.config.storageConfig.upload.provider; - let cmdPlugin; async.waterfall([ function startServices(callback) { diff --git a/lib/modules/ipfs/index.js b/lib/modules/ipfs/index.js index d73b8fc0c..14ccb449b 100644 --- a/lib/modules/ipfs/index.js +++ b/lib/modules/ipfs/index.js @@ -15,8 +15,8 @@ class IPFS { this.storageConfig = embark.config.storageConfig; this.embark = embark; - this.webServerConfig = embark.config.webServerConfig - this.blockchainConfig = embark.config.blockchainConfig + this.webServerConfig = embark.config.webServerConfig; + this.blockchainConfig = embark.config.blockchainConfig; this.commandlineDeploy(); this.setServiceCheck(); @@ -81,13 +81,13 @@ class IPFS { _getNodeUrl() { if (this.storageConfig.upload.provider === 'ipfs') { - let { protocol, host, port } = this.storageConfig.upload; + let {protocol, host, port} = this.storageConfig.upload; return (protocol || 'http') + '://' + host + ':' + port + '/api/v0/version'; } for (let connection of this.storageConfig.dappConnection) { if (connection.provider === 'ipfs') { - let { protocol, host, port } = connection; + let {protocol, host, port} = connection; return (protocol || 'http') + '://' + host + ':' + port + '/api/v0/version'; } } diff --git a/lib/modules/storage/index.js b/lib/modules/storage/index.js index a3b77b99c..24d91be3e 100644 --- a/lib/modules/storage/index.js +++ b/lib/modules/storage/index.js @@ -5,7 +5,6 @@ const SwarmModule = require('../swarm'); class Storage { constructor(embark, options){ - const self = this; this.embark = embark; this.storageConfig = embark.config.storageConfig; diff --git a/lib/modules/swarm/index.js b/lib/modules/swarm/index.js index 69387916b..90057d92b 100644 --- a/lib/modules/swarm/index.js +++ b/lib/modules/swarm/index.js @@ -16,8 +16,8 @@ class Swarm { this.port = options.port || this.storageConfig.port; this.embark = embark; - this.webServerConfig = embark.config.webServerConfig, - this.blockchainConfig = embark.config.blockchainConfig + this.webServerConfig = embark.config.webServerConfig; + this.blockchainConfig = embark.config.blockchainConfig; this.providerUrl = utils.buildUrl(options.protocol || options.storageConfig.upload.protocol, options.host || options.storageConfig.upload.host, options.port || options.storageConfig.upload.port);