Removing unused variables

This commit is contained in:
Richard Ramos 2018-06-08 17:22:53 -04:00
parent 0f853ba841
commit 09c11662aa
2 changed files with 34 additions and 30 deletions

View File

@ -14,7 +14,7 @@ exports.serve = function(ipc, host, port, ws){
ws: ws ws: ws
}); });
proxy.on('error', function (err, req, res) { proxy.on('error', function () {
proxy.close(); proxy.close();
}); });
@ -37,7 +37,7 @@ exports.serve = function(ipc, host, port, ws){
ipc.request('log', commList[receipts[jsonO.id]]); ipc.request('log', commList[receipts[jsonO.id]]);
} else { } else {
ipc.connecting = true; ipc.connecting = true;
ipc.connect((err) => { ipc.connect(() => {
ipc.connecting = false; ipc.connecting = false;
}); });
} }

View File

@ -41,6 +41,7 @@ class ConsoleListener {
} }
listenForLogRequests(){ listenForLogRequests(){
try {
this.ipc.on('log', (request) => { this.ipc.on('log', (request) => {
if(request.type == 'contract-log'){ if(request.type == 'contract-log'){
@ -71,6 +72,9 @@ class ConsoleListener {
this.logger.debug(request); this.logger.debug(request);
} }
}); });
} catch(e) {
//
}
} }
} }