-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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: fix validateport error message when allowZero is false #32861
Conversation
8fc220c
to
7cb9849
Compare
It seems that there is a problem with install deps when building on windows.
|
7cb9849
to
b5ac0f0
Compare
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 if CI passes
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.
No need to change this PR, but It's kind of funny that there was discussion about making the third argument to validatePort()
an object vs. a boolean for readability purposes, just to end up using a boolean here anyway. It seems like we should migrate the validatePort()
arg to a boolean - it's an internal API anyway.
I think making the third parameter of |
It was to avoid "magical boolean values" |
|
To be fair, more of them do not take an options object, so it introduced more inconsistency. |
Should be ready, Can you help restart a CI run ? @jasnell |
It seems that the CI run failure has nothing to do with this PR.
|
Landed in 1d0b249 |
fixes: #32857
/cc @jasnell
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes