aboutsummaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/no-param-reassign.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2017-11-25 23:18:02 -0500
committercjihrig <cjihrig@gmail.com>2017-11-27 21:58:07 -0500
commitc2d738db8053a0e090aabbeeb088b34c3da7b7ad (patch)
tree3e8760805c82f61936df894149c95a5d2c0320ff /tools/eslint/lib/rules/no-param-reassign.js
parenta177708e338cc770f15405d5b706da094f101aa0 (diff)
downloadandroid-node-v8-c2d738db8053a0e090aabbeeb088b34c3da7b7ad.tar.gz
android-node-v8-c2d738db8053a0e090aabbeeb088b34c3da7b7ad.tar.bz2
android-node-v8-c2d738db8053a0e090aabbeeb088b34c3da7b7ad.zip
tools: update to ESLint 4.12.0
PR-URL: https://github.com/nodejs/node/pull/16948 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'tools/eslint/lib/rules/no-param-reassign.js')
-rw-r--r--tools/eslint/lib/rules/no-param-reassign.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/eslint/lib/rules/no-param-reassign.js b/tools/eslint/lib/rules/no-param-reassign.js
index 560d1d6b6f..f32e42ae2f 100644
--- a/tools/eslint/lib/rules/no-param-reassign.js
+++ b/tools/eslint/lib/rules/no-param-reassign.js
@@ -127,8 +127,10 @@ module.exports = {
if (identifier &&
!reference.init &&
- // Destructuring assignments can have multiple default value,
- // so possibly there are multiple writeable references for the same identifier.
+ /*
+ * Destructuring assignments can have multiple default value,
+ * so possibly there are multiple writeable references for the same identifier.
+ */
(index === 0 || references[index - 1].identifier !== identifier)
) {
if (reference.isWrite()) {