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