Improve code style

This commit is contained in:
copy 2017-03-06 19:03:28 -05:00
parent b23b070a8d
commit d8db712108

View file

@ -208,8 +208,8 @@ if(cluster.isMaster)
{ {
var worker = cluster.fork(); var worker = cluster.fork();
worker.on("message", send_work_to_worker.bind(this, worker)); worker.on("message", send_work_to_worker.bind(null, worker));
worker.on("online", send_work_to_worker.bind(this, worker)); worker.on("online", send_work_to_worker.bind(null, worker));
worker.on("exit", function(code, signal) worker.on("exit", function(code, signal)
{ {
@ -243,7 +243,7 @@ function bytearray_starts_with(arr, search)
{ {
if(arr[i] !== search[i]) if(arr[i] !== search[i])
{ {
return false return false;
} }
} }
return true; return true;