summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/no-undef-init.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/lib/rules/no-undef-init.js')
-rw-r--r--tools/eslint/lib/rules/no-undef-init.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/eslint/lib/rules/no-undef-init.js b/tools/eslint/lib/rules/no-undef-init.js
index 2683f61e8a..80a27f6b78 100644
--- a/tools/eslint/lib/rules/no-undef-init.js
+++ b/tools/eslint/lib/rules/no-undef-init.js
@@ -25,7 +25,7 @@ module.exports = {
return {
VariableDeclarator: function(node) {
- let name = node.id.name,
+ const name = node.id.name,
init = node.init && node.init.name;
if (init === "undefined" && node.parent.kind !== "const") {