mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-02 10:25:21 +00:00
fixes and linting
This commit is contained in:
parent
ca32d7aac0
commit
363608287f
@ -16,7 +16,7 @@ class ProcessManager {
|
|||||||
|
|
||||||
self.events.setCommandHandler('processes:launch', (name, cb) => {
|
self.events.setCommandHandler('processes:launch', (name, cb) => {
|
||||||
let process = self.processes[name];
|
let process = self.processes[name];
|
||||||
if (process.state != 'unstarted') {
|
if (process.state !== 'unstarted') {
|
||||||
return cb();
|
return cb();
|
||||||
}
|
}
|
||||||
process.state = 'starting';
|
process.state = 'starting';
|
||||||
|
@ -273,10 +273,6 @@ Blockchain.prototype.initChainAndGetAddress = function(callback) {
|
|||||||
next(err);
|
next(err);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
function copy(next) {
|
|
||||||
// copy mining script
|
|
||||||
fs.copy(fs.embarkPath("js"), ".embark/" + self.env + "/js", {overwrite: true}, next);
|
|
||||||
},
|
|
||||||
function listAccounts(next) {
|
function listAccounts(next) {
|
||||||
self.runCommand(self.client.listAccountsCommand(), {}, (err, stdout, _stderr) => {
|
self.runCommand(self.client.listAccountsCommand(), {}, (err, stdout, _stderr) => {
|
||||||
if (err || stdout === undefined || stdout.match(/{(\w+)}/) === null || stdout.indexOf("Fatal") >= 0) {
|
if (err || stdout === undefined || stdout.match(/{(\w+)}/) === null || stdout.indexOf("Fatal") >= 0) {
|
||||||
|
@ -50,7 +50,7 @@ class BlockchainModule {
|
|||||||
const {host, port, type, protocol} = self.contractsConfig.deployment;
|
const {host, port, type, protocol} = self.contractsConfig.deployment;
|
||||||
utils.pingEndpoint(host, port, type, protocol, self.blockchainConfig.wsOrigins.split(',')[0], next);
|
utils.pingEndpoint(host, port, type, protocol, self.blockchainConfig.wsOrigins.split(',')[0], next);
|
||||||
}
|
}
|
||||||
], function (err, _result) {
|
], function (err) {
|
||||||
if (err === true || err === undefined) {
|
if (err === true || err === undefined) {
|
||||||
return cb(true);
|
return cb(true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user