summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/no-unused-labels.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/lib/rules/no-unused-labels.js')
-rw-r--r--tools/eslint/lib/rules/no-unused-labels.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/eslint/lib/rules/no-unused-labels.js b/tools/eslint/lib/rules/no-unused-labels.js
index 77713fc408..ec13c6168e 100644
--- a/tools/eslint/lib/rules/no-unused-labels.js
+++ b/tools/eslint/lib/rules/no-unused-labels.js
@@ -21,7 +21,7 @@ module.exports = {
},
create: function(context) {
- var scopeInfo = null;
+ let scopeInfo = null;
/**
* Adds a scope info to the stack.
@@ -68,8 +68,8 @@ module.exports = {
return;
}
- var label = node.label.name;
- var info = scopeInfo;
+ let label = node.label.name;
+ let info = scopeInfo;
while (info) {
if (info.label === label) {