-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
lib: use object destructuring for canonicalizeIP #20070
Conversation
This commit updates canonicalizeIP to use object destructuring which is done for other functions in lib/tls.js
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.
LGTM with the other variable using destructuring as well.
lib/tls.js
Outdated
@@ -33,7 +33,7 @@ const binding = process.binding('crypto'); | |||
const Buffer = require('buffer').Buffer; |
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.
This should also use destructuring.
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.
Thanks, I missed that one. I'll update shortly.
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.
Still LGTM
node-test-commit failure looks unrelated06:36:40 not ok 2170 es-module/test-esm-preserve-symlinks-not-found
06:36:40 ---
06:36:40 duration_ms: 0.264
06:36:40 severity: crashed
06:36:40 exitcode: -6
06:36:40 stack: |-
06:36:40 oh no!
06:36:40 exit code: CRASHED (Signal: 6)
06:36:40 ... |
Landed in 72d1586. |
This commit updates canonicalizeIP and Buffer to use object destructuring which is done for other functions in lib/tls.js PR-URL: #20070 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
This commit updates canonicalizeIP and Buffer to use object destructuring which is done for other functions in lib/tls.js PR-URL: #20070 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
This commit updates canonicalizeIP to use object destructuring which is
done for other functions in lib/tls.js
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes