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]>
  • Loading branch information
Herrmann, Rene R. (656) authored and targos committed Dec 1, 2019
1 parent 77cbf09 commit bd78c4f
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
Expand Up @@ -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)
Expand All @@ -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);
Expand Down

0 comments on commit bd78c4f

Please sign in to comment.