Browse Source

tools: change var to const in ./eslint-rules

PR-URL: https://github.com/nodejs/node/pull/13732
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
v6
Ruben Bridgewater 8 years ago
committed by Refael Ackermann
parent
commit
ea67c27168
No known key found for this signature in database GPG Key ID: CD704BD80FDDDB64
  1. 4
      tools/eslint-rules/required-modules.js

4
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) {

Loading…
Cancel
Save