summaryrefslogtreecommitdiff
path: root/lib/cluster.js
diff options
context:
space:
mode:
authorSakthipriyan Vairamani <thechargingvolcano@gmail.com>2015-10-08 23:11:29 +0530
committerSakthipriyan Vairamani <thechargingvolcano@gmail.com>2015-10-27 23:03:33 +0530
commitaaf9b488e28cb904be2ceec032b3fb2dbe532d6d (patch)
tree15cc90c71c8288c740ddfcb31fcb29a566b906bc /lib/cluster.js
parentb0e7b362c2ffe91d785446f420629e52eb793508 (diff)
downloadandroid-node-v8-aaf9b488e28cb904be2ceec032b3fb2dbe532d6d.tar.gz
android-node-v8-aaf9b488e28cb904be2ceec032b3fb2dbe532d6d.tar.bz2
android-node-v8-aaf9b488e28cb904be2ceec032b3fb2dbe532d6d.zip
lib,test: update let to const where applicable
As per the `prefer-const` eslint rule, few instances of `let` have been identified to be better with `const`. This patch updates all those instances. Refer: https://github.com/nodejs/node/issues/3118 PR-URL: https://github.com/nodejs/node/pull/3152 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Diffstat (limited to 'lib/cluster.js')
-rw-r--r--lib/cluster.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cluster.js b/lib/cluster.js
index eef8bd2563..fbad0b0821 100644
--- a/lib/cluster.js
+++ b/lib/cluster.js
@@ -291,7 +291,7 @@ function masterInit() {
var match = execArgv[i].match(/^(--debug|--debug-(brk|port))(=\d+)?$/);
if (match) {
- let debugPort = process.debugPort + debugPortOffset;
+ const debugPort = process.debugPort + debugPortOffset;
++debugPortOffset;
execArgv[i] = match[1] + '=' + debugPort;
}