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

Remove unnecessary allowNull argument from getSocketAddress. NFC #22643

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Sep 27, 2024

The only callsite that was using this third argument was simply doing and early return, so we can just move the check to the caller and simplify the code.

@sbc100 sbc100 requested a review from kripken September 27, 2024 01:01
The only callsite that was using this third argument was simply doing
and early return, we can just most the check to the caller and
simpify the code.
Copy link
Collaborator

@brendandahl brendandahl left a comment

Choose a reason for hiding this comment

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

r+ but looks like there's a typo or two in the commit message.

@sbc100
Copy link
Collaborator Author

sbc100 commented Sep 27, 2024

r+ but looks like there's a typo or two in the commit message.

Thats how you can tell its one of mine :)

@sbc100 sbc100 merged commit b7c1126 into emscripten-core:main Sep 27, 2024
28 checks passed
@sbc100 sbc100 deleted the getSocketAddress branch September 27, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants