mirror of https://github.com/embarklabs/embark.git
make linter happy
This commit is contained in:
parent
dbab744345
commit
2baa6ed792
|
@ -24,7 +24,7 @@ Logger.prototype.error = function () {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.events.emit("log", "error", ...arguments);
|
this.events.emit("log", "error", ...arguments);
|
||||||
this.logFunction(...Array.from(arguments).map(t => t ? t.red : t));
|
this.logFunction(...Array.from(arguments).map(t => { return t ? t.red : t; }));
|
||||||
this.writeToFile("[error]: ", ...arguments);
|
this.writeToFile("[error]: ", ...arguments);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ Logger.prototype.warn = function () {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.events.emit("log", "warning", ...arguments);
|
this.events.emit("log", "warning", ...arguments);
|
||||||
this.logFunction(...Array.from(arguments).map(t => t ? t.yellow : t));
|
this.logFunction(...Array.from(arguments).map(t => { return t ? t.yellow : t; }));
|
||||||
this.writeToFile("[warning]: ", ...arguments);
|
this.writeToFile("[warning]: ", ...arguments);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ Logger.prototype.info = function () {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.events.emit("log", "info", ...arguments);
|
this.events.emit("log", "info", ...arguments);
|
||||||
this.logFunction(...Array.from(arguments).map(t => t ? t.green : t));
|
this.logFunction(...Array.from(arguments).map(t => { return t ? t.green : t; }));
|
||||||
this.writeToFile("[info]: ", ...arguments);
|
this.writeToFile("[info]: ", ...arguments);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ class IPFS {
|
||||||
this.blockchainConfig = embark.config.blockchainConfig;
|
this.blockchainConfig = embark.config.blockchainConfig;
|
||||||
|
|
||||||
if (!this.isIpfsEnabledInTheConfig()) {
|
if (!this.isIpfsEnabledInTheConfig()) {
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setServiceCheck();
|
this.setServiceCheck();
|
||||||
|
@ -132,7 +132,7 @@ class IPFS {
|
||||||
}
|
}
|
||||||
|
|
||||||
isIpfsEnabledInTheConfig() {
|
isIpfsEnabledInTheConfig() {
|
||||||
let { enabled, available_providers, dappConnection } = this.storageConfig;
|
let {enabled, available_providers, dappConnection} = this.storageConfig;
|
||||||
return enabled && (available_providers.indexOf('ipfs') > 0 || dappConnection.find(c => c.provider === 'ipfs'));
|
return enabled && (available_providers.indexOf('ipfs') > 0 || dappConnection.find(c => c.provider === 'ipfs'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ const StorageProcessesLauncher = require('../../processes/storageProcesses/stora
|
||||||
|
|
||||||
class Swarm {
|
class Swarm {
|
||||||
|
|
||||||
constructor(embark, options) {
|
constructor(embark, _options) {
|
||||||
this.logger = embark.logger;
|
this.logger = embark.logger;
|
||||||
this.events = embark.events;
|
this.events = embark.events;
|
||||||
this.buildDir = embark.config.buildDir;
|
this.buildDir = embark.config.buildDir;
|
||||||
|
@ -108,7 +108,7 @@ class Swarm {
|
||||||
}
|
}
|
||||||
|
|
||||||
isSwarmEnabledInTheConfig() {
|
isSwarmEnabledInTheConfig() {
|
||||||
let { enabled, available_providers, dappConnection } = this.storageConfig;
|
let {enabled, available_providers, dappConnection} = this.storageConfig;
|
||||||
return enabled && (available_providers.indexOf('swarm') > 0 || dappConnection.find(c => c.provider === 'swarm'));
|
return enabled && (available_providers.indexOf('swarm') > 0 || dappConnection.find(c => c.provider === 'swarm'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue