File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -91,14 +91,14 @@ exports.SecureContext = SecureContext;
91
91
exports . createSecureContext = function createSecureContext ( options ) {
92
92
if ( ! options ) options = { } ;
93
93
94
- var secureOptions = options . secureOptions ;
94
+ let secureOptions = options . secureOptions ;
95
95
if ( options . honorCipherOrder )
96
96
secureOptions |= SSL_OP_CIPHER_SERVER_PREFERENCE ;
97
97
98
98
const c = new SecureContext ( options . secureProtocol , secureOptions ,
99
99
options . minVersion , options . maxVersion ) ;
100
- var i ;
101
- var val ;
100
+ let i ;
101
+ let val ;
102
102
103
103
// Add CA before the cert to be able to load cert's issuer in C++ code.
104
104
const { ca } = options ;
@@ -313,7 +313,7 @@ exports.translatePeerCertificate = function translatePeerCertificate(c) {
313
313
}
314
314
if ( c . subject != null ) c . subject = parseCertString ( c . subject ) ;
315
315
if ( c . infoAccess != null ) {
316
- var info = c . infoAccess ;
316
+ const info = c . infoAccess ;
317
317
c . infoAccess = Object . create ( null ) ;
318
318
319
319
// XXX: More key validation?
You can’t perform that action at this time.
0 commit comments