From 650b09ac2ea005c8a1fe687bc75d8245b67f4bf5 Mon Sep 17 00:00:00 2001 From: "Herrmann, Rene R. (656)" Date: Tue, 12 Nov 2019 15:39:28 +0000 Subject: [PATCH] cluster: replace var with let in lib/internal/cluster/utils.js --- lib/internal/cluster/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal/cluster/utils.js b/lib/internal/cluster/utils.js index f20206c842be96..b6d572fd0ea44c 100644 --- a/lib/internal/cluster/utils.js +++ b/lib/internal/cluster/utils.js @@ -6,7 +6,7 @@ module.exports = { }; const callbacks = new Map(); -var seq = 0; +let seq = 0; function sendHelper(proc, message, handle, cb) { if (!proc.connected) @@ -29,7 +29,7 @@ function internal(worker, cb) { if (message.cmd !== 'NODE_CLUSTER') return; - var fn = cb; + let fn = cb; if (message.ack !== undefined) { const callback = callbacks.get(message.ack);