summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/no-eq-null.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/lib/rules/no-eq-null.js')
-rw-r--r--tools/eslint/lib/rules/no-eq-null.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/eslint/lib/rules/no-eq-null.js b/tools/eslint/lib/rules/no-eq-null.js
index 743f290803..57e4a3f4e4 100644
--- a/tools/eslint/lib/rules/no-eq-null.js
+++ b/tools/eslint/lib/rules/no-eq-null.js
@@ -26,7 +26,7 @@ module.exports = {
return {
BinaryExpression: function(node) {
- let badOperator = node.operator === "==" || node.operator === "!=";
+ const badOperator = node.operator === "==" || node.operator === "!=";
if (node.right.type === "Literal" && node.right.raw === "null" && badOperator ||
node.left.type === "Literal" && node.left.raw === "null" && badOperator) {