Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

zhangwinning
Copy link
Contributor

@zhangwinning zhangwinning commented May 4, 2020

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

@nodejs-github-bot nodejs-github-bot added the dns Issues and PRs related to the dns subsystem. label May 4, 2020
Copy link
Member

@tniessen tniessen left a 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.

@tniessen
Copy link
Member

tniessen commented May 5, 2020

@zhangwinning Thank you for your contribution! I did not mean that this should not be merged. Do you want this to be reopened?

@zhangwinning zhangwinning reopened this May 12, 2020
@zhangwinning
Copy link
Contributor Author

zhangwinning commented May 12, 2020

@tniessen, I misunderstood you 😭, sorry for replying now, thank you guidance!

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented May 23, 2020

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 23, 2020
@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented May 23, 2020

CI: https://ci.nodejs.org/job/node-test-pull-request/31518/ 💛 (a different flake then the one before)

BridgeAR pushed a commit to BridgeAR/node that referenced this pull request May 23, 2020
PR-URL: nodejs#33234
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
@BridgeAR
Copy link
Member

Landed in 5d06a37

@zhangwinning congratulations on your first commit to Node.js! 🎉

@BridgeAR BridgeAR closed this May 23, 2020
codebytere pushed a commit that referenced this pull request Jun 18, 2020
PR-URL: #33234
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
@codebytere codebytere mentioned this pull request Jun 28, 2020
codebytere pushed a commit that referenced this pull request Jun 30, 2020
PR-URL: #33234
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
codebytere pushed a commit that referenced this pull request Jul 8, 2020
PR-URL: #33234
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
@codebytere codebytere mentioned this pull request Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. dns Issues and PRs related to the dns subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants