From d8db71210898eabea99e9e47e7767a24ed844d11 Mon Sep 17 00:00:00 2001 From: copy Date: Mon, 6 Mar 2017 19:03:28 -0500 Subject: [PATCH] Improve code style --- tests/full/run.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/full/run.js b/tests/full/run.js index 4b422d32..6dca248e 100755 --- a/tests/full/run.js +++ b/tests/full/run.js @@ -208,8 +208,8 @@ if(cluster.isMaster) { var worker = cluster.fork(); - worker.on("message", send_work_to_worker.bind(this, worker)); - worker.on("online", 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(null, worker)); worker.on("exit", function(code, signal) { @@ -243,7 +243,7 @@ function bytearray_starts_with(arr, search) { if(arr[i] !== search[i]) { - return false + return false; } } return true;