Skip to content

Commit

Permalink
cluster: replace var with let
Browse files Browse the repository at this point in the history
replace var with let in lib/internal/cluster/utils.js
PR-URL: #30425
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Herrmann, Rene R. (656) authored and addaleax committed Nov 30, 2019
1 parent 7d98a59 commit 708e67a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/cluster/utils.js
Original file line number Diff line number Diff line change
@@ -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 708e67a

Please sign in to comment.