Skip to content

Commit 4ad4e37

Browse files
oygen87rvagg
authored andcommitted
tls: change var to const
PR-URL: #22219 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Jon Moss <[email protected]>
1 parent afd3d49 commit 4ad4e37

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎lib/internal/tls.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
// Example:
44
// C=US\nST=CA\nL=SF\nO=Joyent\nOU=Node.js\nCN=ca1\[email protected]
55
functionparseCertString(s){
6-
varout=Object.create(null);
7-
varparts=s.split('\n');
6+
constout=Object.create(null);
7+
constparts=s.split('\n');
88
for(vari=0,len=parts.length;i<len;i++){
9-
varsepIndex=parts[i].indexOf('=');
9+
constsepIndex=parts[i].indexOf('=');
1010
if(sepIndex>0){
11-
varkey=parts[i].slice(0,sepIndex);
12-
varvalue=parts[i].slice(sepIndex+1);
11+
constkey=parts[i].slice(0,sepIndex);
12+
constvalue=parts[i].slice(sepIndex+1);
1313
if(keyinout){
1414
if(!Array.isArray(out[key])){
1515
out[key]=[out[key]];

0 commit comments

Comments
(0)