mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-02 10:25:21 +00:00
lint is king
This commit is contained in:
parent
aa9717b62f
commit
792e7dff5b
@ -10,8 +10,6 @@ const DevFunds = require('./dev_funds.js');
|
|||||||
|
|
||||||
const {defaultHost, dockerHostSwap} = require('../../utils/host');
|
const {defaultHost, dockerHostSwap} = require('../../utils/host');
|
||||||
|
|
||||||
const {defaultHost, dockerHostSwap} = require('../../utils/host');
|
|
||||||
|
|
||||||
/*eslint complexity: ["error", 36]*/
|
/*eslint complexity: ["error", 36]*/
|
||||||
var Blockchain = function(options) {
|
var Blockchain = function(options) {
|
||||||
this.blockchainConfig = options.blockchainConfig;
|
this.blockchainConfig = options.blockchainConfig;
|
||||||
@ -217,7 +215,7 @@ Blockchain.prototype.createFundAndUnlockAccounts = function(cb) {
|
|||||||
cb(err);
|
cb(err);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
Blockchain.prototype.readyCallback = function() {
|
Blockchain.prototype.readyCallback = function() {
|
||||||
if (this.onReadyCallback) {
|
if (this.onReadyCallback) {
|
||||||
|
@ -81,14 +81,6 @@ class Whisper {
|
|||||||
type: connection.type || 'ws'
|
type: connection.type || 'ws'
|
||||||
});
|
});
|
||||||
|
|
||||||
if (keys.symmetricKey) {
|
|
||||||
config.symKey = keys.symmetricKey;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (keys.privateKey) {
|
|
||||||
config.privateKey = keys.privateKey;
|
|
||||||
}
|
|
||||||
|
|
||||||
config = JSON.stringify(config);
|
config = JSON.stringify(config);
|
||||||
|
|
||||||
let code = "\nEmbarkJS.Messages.setProvider('whisper'," + config + ");";
|
let code = "\nEmbarkJS.Messages.setProvider('whisper'," + config + ");";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user