mirror of https://github.com/embarklabs/embark.git
make linter happy
This commit is contained in:
parent
2780b4eb2f
commit
e07d06fa4c
|
@ -306,7 +306,6 @@ class Embark {
|
||||||
|
|
||||||
let platform = engine.config.storageConfig.upload.provider;
|
let platform = engine.config.storageConfig.upload.provider;
|
||||||
|
|
||||||
let cmdPlugin;
|
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
|
|
||||||
function startServices(callback) {
|
function startServices(callback) {
|
||||||
|
|
|
@ -15,8 +15,8 @@ class IPFS {
|
||||||
this.storageConfig = embark.config.storageConfig;
|
this.storageConfig = embark.config.storageConfig;
|
||||||
this.embark = embark;
|
this.embark = embark;
|
||||||
|
|
||||||
this.webServerConfig = embark.config.webServerConfig
|
this.webServerConfig = embark.config.webServerConfig;
|
||||||
this.blockchainConfig = embark.config.blockchainConfig
|
this.blockchainConfig = embark.config.blockchainConfig;
|
||||||
|
|
||||||
this.commandlineDeploy();
|
this.commandlineDeploy();
|
||||||
this.setServiceCheck();
|
this.setServiceCheck();
|
||||||
|
@ -81,13 +81,13 @@ class IPFS {
|
||||||
|
|
||||||
_getNodeUrl() {
|
_getNodeUrl() {
|
||||||
if (this.storageConfig.upload.provider === 'ipfs') {
|
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';
|
return (protocol || 'http') + '://' + host + ':' + port + '/api/v0/version';
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let connection of this.storageConfig.dappConnection) {
|
for (let connection of this.storageConfig.dappConnection) {
|
||||||
if (connection.provider === 'ipfs') {
|
if (connection.provider === 'ipfs') {
|
||||||
let { protocol, host, port } = connection;
|
let {protocol, host, port} = connection;
|
||||||
return (protocol || 'http') + '://' + host + ':' + port + '/api/v0/version';
|
return (protocol || 'http') + '://' + host + ':' + port + '/api/v0/version';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,6 @@ const SwarmModule = require('../swarm');
|
||||||
|
|
||||||
class Storage {
|
class Storage {
|
||||||
constructor(embark, options){
|
constructor(embark, options){
|
||||||
const self = this;
|
|
||||||
this.embark = embark;
|
this.embark = embark;
|
||||||
this.storageConfig = embark.config.storageConfig;
|
this.storageConfig = embark.config.storageConfig;
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,8 @@ class Swarm {
|
||||||
this.port = options.port || this.storageConfig.port;
|
this.port = options.port || this.storageConfig.port;
|
||||||
this.embark = embark;
|
this.embark = embark;
|
||||||
|
|
||||||
this.webServerConfig = embark.config.webServerConfig,
|
this.webServerConfig = embark.config.webServerConfig;
|
||||||
this.blockchainConfig = embark.config.blockchainConfig
|
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);
|
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