dgram: remove unreachable connectState assign#38590
Merged
nodejs-github-bot merged 1 commit intonodejs:masterfrom Jan 20, 2022
Merged
dgram: remove unreachable connectState assign#38590nodejs-github-bot merged 1 commit intonodejs:masterfrom
nodejs-github-bot merged 1 commit intonodejs:masterfrom
Conversation
Contributor
Author
|
Another thing which needs to check is that calling AFAICT it doesn't, but it is better to check again in the code review. |
oyyd
approved these changes
Dec 24, 2021
Collaborator
This was referenced Dec 25, 2021
Contributor
|
@pd4d10 Can you rebase against master? (so that we might have luck to get a green CI) |
Collaborator
This was referenced Dec 28, 2021
This was referenced Jan 4, 2022
Contributor
|
It looks like there are some relevant CI failure. Also could you rebase instead of marging? Merge commits tend to break our tooling. |
Collaborator
19 tasks
Collaborator
This was referenced Jan 7, 2022
22 tasks
Collaborator
16 tasks
Collaborator
This was referenced Jan 19, 2022
Contributor
|
The CI is green now. /cc @nodejs/dgram for more reviews. |
Collaborator
|
Landed in 5753eb1 |
BethGriggs
pushed a commit
that referenced
this pull request
Jan 25, 2022
PR-URL: #38590 Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Linkgoron
pushed a commit
to Linkgoron/node
that referenced
this pull request
Jan 31, 2022
PR-URL: nodejs#38590 Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
danielleadams
pushed a commit
that referenced
this pull request
Feb 28, 2022
PR-URL: #38590 Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
danielleadams
pushed a commit
that referenced
this pull request
Mar 2, 2022
PR-URL: #38590 Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
danielleadams
pushed a commit
that referenced
this pull request
Mar 3, 2022
PR-URL: #38590 Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
danielleadams
pushed a commit
that referenced
this pull request
Mar 14, 2022
PR-URL: #38590 Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
isConnected()returnstrueimplies thatremoteAddress()doesn't throw an error. The implementation ofremoteAddressis as follows:node/lib/dgram.js
Lines 770 to 775 in 29f1b60
It also implies that
state.connectState === CONNECT_STATE_CONNECTED.So it seems not necessary to assign it again.