readline: remove intermediate variable#31676
Conversation
BridgeAR
left a comment
There was a problem hiding this comment.
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 <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
|
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 <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
|
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