summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/no-useless-concat.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/lib/rules/no-useless-concat.js')
-rw-r--r--tools/eslint/lib/rules/no-useless-concat.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/eslint/lib/rules/no-useless-concat.js b/tools/eslint/lib/rules/no-useless-concat.js
index 6c4cecd7b6..20d2afeaca 100644
--- a/tools/eslint/lib/rules/no-useless-concat.js
+++ b/tools/eslint/lib/rules/no-useless-concat.js
@@ -8,7 +8,7 @@
// Requirements
//------------------------------------------------------------------------------
-let astUtils = require("../ast-utils");
+const astUtils = require("../ast-utils");
//------------------------------------------------------------------------------
// Helpers
@@ -67,7 +67,7 @@ module.exports = {
},
create: function(context) {
- let sourceCode = context.getSourceCode();
+ const sourceCode = context.getSourceCode();
return {
BinaryExpression: function(node) {
@@ -78,8 +78,8 @@ module.exports = {
}
// account for the `foo + "a" + "b"` case
- let left = getLeft(node);
- let right = getRight(node);
+ const left = getLeft(node);
+ const right = getRight(node);
if (astUtils.isStringLiteral(left) &&
astUtils.isStringLiteral(right) &&