-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
readline: remove intermediate variable #31676
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 added the variable deliberately to indicate the meaning of it. It's otherwise not possible to know what true
stands for. Instead of removing the variable, it's likely better to change other places to also indicate the passed through meaning.
The reader needs to jump to |
@lpinca it's an indirection and IMO |
This commit removes an extrea intermediate variable. This makes the call consistent with other uses of validateUint32() in the codebase. PR-URL: nodejs#31676 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
It's not really feasible to replace all uses of |
This commit removes an extrea intermediate variable. This makes the call consistent with other uses of validateUint32() in the codebase. PR-URL: #31676 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
depends on #31318 to land on v12.x |
This commit removes an extra intermediate variable. This makes the call consistent with other uses of
validateUint32()
in the codebase.Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes