From ea67c27168ad03a89c88503ebea49efb88cabe0f Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Mon, 19 Jun 2017 17:56:04 +0200 Subject: [PATCH] tools: change var to const in ./eslint-rules PR-URL: https://github.com/nodejs/node/pull/13732 Reviewed-By: Colin Ihrig Reviewed-By: Refael Ackermann --- tools/eslint-rules/required-modules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/eslint-rules/required-modules.js b/tools/eslint-rules/required-modules.js index 4a444809b7..47ade5cd9f 100644 --- a/tools/eslint-rules/required-modules.js +++ b/tools/eslint-rules/required-modules.js @@ -4,7 +4,7 @@ */ 'use strict'; -var path = require('path'); +const path = require('path'); //------------------------------------------------------------------------------ // Rule Definition @@ -14,7 +14,7 @@ module.exports = function(context) { // trim required module names var requiredModules = context.options; - var foundModules = []; + const foundModules = []; // if no modules are required we don't need to check the CallExpressions if (requiredModules.length === 0) {