-
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
dns: use ternary operator simplify statement #33234
Conversation
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.
I am +0 on this. It doesn't really simplify much, the complexity of the if ... else ...
is still there. It just saves additional call statements, while making things less readable.
@zhangwinning Thank you for your contribution! I did not mean that this should not be merged. Do you want this to be reopened? |
@tniessen, I misunderstood you 😭, sorry for replying now, thank you guidance! |
CI: https://ci.nodejs.org/job/node-test-pull-request/31518/ 💛 (a different flake then the one before) |
PR-URL: nodejs#33234 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Landed in 5d06a37 @zhangwinning congratulations on your first commit to Node.js! 🎉 |
PR-URL: #33234 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
PR-URL: #33234 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
PR-URL: #33234 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes