-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tls: replace var with let and const #30299
Conversation
if (options.honorCipherOrder) | ||
secureOptions |= SSL_OP_CIPHER_SERVER_PREFERENCE; | ||
|
||
const c = new SecureContext(options.secureProtocol, secureOptions, | ||
options.minVersion, options.maxVersion); | ||
var i; | ||
var val; | ||
let i; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable i
can be moved inside for loop on lines 107 and 123
for (let i = 0; i < ca.length; ++i) {
for (let i = 0; i < cert.length; ++i) {
var i; | ||
var val; | ||
let i; | ||
let val; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable val
can be made const on lines 108 and 124
const val = ca[i];
const val = cert[i];
PR-URL: #30299 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Landed in 722fc72 |
Thanks for the contribution! 🎉 |
PR-URL: #30299 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: #30299 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: #30299 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes