FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

tls: replace var with let and const by Nolikzero · Pull Request #30299 · nodejs/node · GitHub

/ node Public

tls: replace var with let and const - #30299

Closed
Nolikzero wants to merge 1 commit into
nodejs:masterfrom
Nolikzero:var-to-let-const
Closed

tls: replace var with let and const#30299
Nolikzero wants to merge 1 commit into
nodejs:masterfrom
Nolikzero:var-to-let-const

Conversation

Copy link
Copy Markdown
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

nodejs-github-bot added the tls Issues and PRs related to the tls subsystem. label Nov 6, 2019
addaleax added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Nov 6, 2019
Comment thread lib/_tls_common.js
options.minVersion, options.maxVersion);
var i;
var val;
let i;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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) {

Comment thread lib/_tls_common.js
var i;
var val;
let i;
let val;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The variable val can be made const on lines 108 and 124

const val = ca[i];
const val = cert[i];

Copy link
Copy Markdown
Collaborator

Trott pushed a commit that referenced this pull request Nov 8, 2019
PR-URL: #30299
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>

Trott commented Nov 8, 2019

Copy link
Copy Markdown
Member

Landed in 722fc72

Trott closed this Nov 8, 2019

Trott commented Nov 8, 2019

Copy link
Copy Markdown
Member

Thanks for the contribution! 🎉

MylesBorins pushed a commit that referenced this pull request Nov 17, 2019
PR-URL: #30299
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
BridgeAR mentioned this pull request Nov 19, 2019
targos pushed a commit that referenced this pull request Dec 1, 2019
PR-URL: #30299
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
BethGriggs mentioned this pull request Dec 9, 2019
MylesBorins pushed a commit that referenced this pull request Dec 17, 2019
PR-URL: #30299
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
BethGriggs mentioned this pull request Dec 23, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. tls Issues and PRs related to the tls subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL