diff options
author | Masashi Hirano <cherrydog07@gmail.com> | 2019-03-02 23:07:03 +0900 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-03-07 00:35:01 +0100 |
commit | ce8f01cf0c3a3b31b35353ec0de665cb04c8a6bc (patch) | |
tree | 731a8f579ad288381e717490c00b811997c2abd5 /tools/eslint-rules/crypto-check.js | |
parent | 95e3119bad03b1829e9d6cc1a0797a283355fe01 (diff) | |
download | android-node-v8-ce8f01cf0c3a3b31b35353ec0de665cb04c8a6bc.tar.gz android-node-v8-ce8f01cf0c3a3b31b35353ec0de665cb04c8a6bc.tar.bz2 android-node-v8-ce8f01cf0c3a3b31b35353ec0de665cb04c8a6bc.zip |
tools: replace var to let/const
PR-URL: https://github.com/nodejs/node/pull/26398
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'tools/eslint-rules/crypto-check.js')
-rw-r--r-- | tools/eslint-rules/crypto-check.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/eslint-rules/crypto-check.js b/tools/eslint-rules/crypto-check.js index fbc319f964..151815cd64 100644 --- a/tools/eslint-rules/crypto-check.js +++ b/tools/eslint-rules/crypto-check.js @@ -23,8 +23,8 @@ const bindingModules = cryptoModules.concat(['tls_wrap']); module.exports = function(context) { const missingCheckNodes = []; const requireNodes = []; - var commonModuleNode = null; - var hasSkipCall = false; + let commonModuleNode = null; + let hasSkipCall = false; function testCryptoUsage(node) { if (utils.isRequired(node, requireModules) || |