make linter happy

This commit is contained in:
Iuri Matias 2018-07-09 01:21:27 +03:00
parent dbab744345
commit 2baa6ed792
3 changed files with 7 additions and 7 deletions

View File

@ -24,7 +24,7 @@ Logger.prototype.error = function () {
return;
}
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);
};
@ -33,7 +33,7 @@ Logger.prototype.warn = function () {
return;
}
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);
};
@ -42,7 +42,7 @@ Logger.prototype.info = function () {
return;
}
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);
};

View File

@ -18,7 +18,7 @@ class IPFS {
this.blockchainConfig = embark.config.blockchainConfig;
if (!this.isIpfsEnabledInTheConfig()) {
return
return;
}
this.setServiceCheck();
@ -132,7 +132,7 @@ class IPFS {
}
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'));
}

View File

@ -6,7 +6,7 @@ const StorageProcessesLauncher = require('../../processes/storageProcesses/stora
class Swarm {
constructor(embark, options) {
constructor(embark, _options) {
this.logger = embark.logger;
this.events = embark.events;
this.buildDir = embark.config.buildDir;
@ -108,7 +108,7 @@ class Swarm {
}
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'));
}