mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-02 10:25:21 +00:00
comply with linter
This commit is contained in:
parent
d9485477c8
commit
0e6d526ab4
@ -13,8 +13,8 @@ class IPC {
|
|||||||
|
|
||||||
connect(done) {
|
connect(done) {
|
||||||
const self = this;
|
const self = this;
|
||||||
function connecting(socket) {
|
function connecting(_socket) {
|
||||||
let connectedBefore = false, alreadyDisconnected = false;;
|
let connectedBefore = false, alreadyDisconnected = false;
|
||||||
ipc.of['embark'].on('connect',function() {
|
ipc.of['embark'].on('connect',function() {
|
||||||
connectedBefore = true;
|
connectedBefore = true;
|
||||||
if (!alreadyDisconnected) {
|
if (!alreadyDisconnected) {
|
||||||
@ -38,8 +38,8 @@ class IPC {
|
|||||||
}
|
}
|
||||||
|
|
||||||
serve() {
|
serve() {
|
||||||
ipc.serve(this.socketPath, () => {})
|
ipc.serve(this.socketPath, () => {});
|
||||||
ipc.server.start()
|
ipc.server.start();
|
||||||
|
|
||||||
this.logger.info(`pid ${process.pid} listening on ${this.socketPath}`);
|
this.logger.info(`pid ${process.pid} listening on ${this.socketPath}`);
|
||||||
}
|
}
|
||||||
@ -52,7 +52,7 @@ class IPC {
|
|||||||
}
|
}
|
||||||
let reply = function(replyData) {
|
let reply = function(replyData) {
|
||||||
self.reply(socket, 'compile', replyData);
|
self.reply(socket, 'compile', replyData);
|
||||||
}
|
};
|
||||||
done(data.message, reply, socket);
|
done(data.message, reply, socket);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,6 @@ let fs = require('../../core/fs.js');
|
|||||||
let currentSolcVersion = require('../../../package.json').dependencies.solc;
|
let currentSolcVersion = require('../../../package.json').dependencies.solc;
|
||||||
const ProcessLauncher = require('../../process/processLauncher');
|
const ProcessLauncher = require('../../process/processLauncher');
|
||||||
const uuid = require('uuid/v1');
|
const uuid = require('uuid/v1');
|
||||||
let ipc = require('node-ipc')
|
|
||||||
|
|
||||||
class SolcW {
|
class SolcW {
|
||||||
|
|
||||||
@ -73,7 +72,6 @@ class SolcW {
|
|||||||
|
|
||||||
compile(jsonObj, done) {
|
compile(jsonObj, done) {
|
||||||
const id = uuid();
|
const id = uuid();
|
||||||
let a = new Date();
|
|
||||||
|
|
||||||
if (this.ipc.isClient() && this.ipc.connected) {
|
if (this.ipc.isClient() && this.ipc.connected) {
|
||||||
return this.ipc.request('compile', jsonObj, done);
|
return this.ipc.request('compile', jsonObj, done);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user