comply with linter

This commit is contained in:
Iuri Matias 2018-06-05 08:37:27 -04:00
parent d9485477c8
commit 0e6d526ab4
2 changed files with 5 additions and 7 deletions

View File

@ -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);
});
}

View File

@ -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);