diff options
author | Xavier Redondo <xavier.redondo@axa.com> | 2019-11-12 16:20:02 +0000 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2019-12-17 17:06:33 -0500 |
commit | 0f7281a3052d18576db6520171e532a776f4442c (patch) | |
tree | 028fc44f7445c206145e8e1f6f1f6fb0f3df2813 /lib/internal/tls.js | |
parent | 351ee645c82457c1edc8c345bcad536b3c50cf5a (diff) | |
download | node-new-0f7281a3052d18576db6520171e532a776f4442c.tar.gz |
tls: change loop var to let
PR-URL: https://github.com/nodejs/node/pull/30445
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'lib/internal/tls.js')
-rw-r--r-- | lib/internal/tls.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/tls.js b/lib/internal/tls.js index 80f6d80e18..8bf9330352 100644 --- a/lib/internal/tls.js +++ b/lib/internal/tls.js @@ -7,7 +7,7 @@ const { Object } = primordials; function parseCertString(s) { const out = Object.create(null); const parts = s.split('\n'); - for (var i = 0, len = parts.length; i < len; i++) { + for (let i = 0, len = parts.length; i < len; i++) { const sepIndex = parts[i].indexOf('='); if (sepIndex > 0) { const key = parts[i].slice(0, sepIndex); |