diff --git a/lib/index.js b/lib/index.js index 2166c518..58710a86 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 d73b8fc0..14ccb449 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 a3b77b99..24d91be3 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 69387916..90057d92 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);