mirror of https://github.com/embarklabs/embark.git
make linter happy
This commit is contained in:
parent
99876ef083
commit
a5c6c38b5e
|
@ -312,7 +312,6 @@ class Embark {
|
|||
|
||||
let platform = engine.config.storageConfig.upload.provider;
|
||||
|
||||
let cmdPlugin;
|
||||
async.waterfall([
|
||||
|
||||
function startServices(callback) {
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,6 @@ const SwarmModule = require('../swarm');
|
|||
|
||||
class Storage {
|
||||
constructor(embark, options){
|
||||
const self = this;
|
||||
this.embark = embark;
|
||||
this.storageConfig = embark.config.storageConfig;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue