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 <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 Dec 17, 2019
1 parent 7ebafda commit 9832144
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 9832144

Please sign in to comment.