Skip to content
Permalink
Browse files

cluster: replace var with let

replace var with let in lib/internal/cluster/utils.js
PR-URL: #30425
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
Herrmann, Rene R. (656) authored and MylesBorins committed Nov 12, 2019
1 parent 7ebafda commit 98321448a66b303f8e9a50f06391e3640ed1ab6a
Showing with 2 additions and 2 deletions.
  1. +2 −2 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);

0 comments on commit 9832144

Please sign in to comment.
You can’t perform that action at this time.