Uh oh!
There was an error while loading. Please reload this page.
fs: use isUint32 in isFd - #20330
Conversation
This commit updates the isFd function to call isUint32 instead of doing the same thing. I was tempted to remove isFd and just use isUint32 instead but wanted to get some feedback from others regarding readablity.
danbev
commented
Apr 26, 2018
BridgeAR
left a comment
There was a problem hiding this comment.
Should we not replace isFd with isUint32 in this case?
danbev
commented
Apr 26, 2018
Yeah, I was thinking the same thing (mentioned in the commit message). I'd prefer that. I'll wait a little and if no one objects I'll update. |
tniessen
commented
Apr 26, 2018
If you'd like to still call |
danbev
commented
Apr 26, 2018
I'd like to just use isUint32, but I like what you suggested there if others disagree. Thanks! |
benjamingr
commented
Apr 26, 2018
I'm +1 on what @tniessen suggested - they do the same thing - but I like the fact |
benjamingr
left a comment
There was a problem hiding this comment.
And in either case LGTM on the current code.
TimothyGu
left a comment
There was a problem hiding this comment.
I’m not a fan of exposing internal functions to userland. The PR in its current shape LGTM.
BridgeAR
commented
Apr 26, 2018
@TimothyGu that function is only used internally as far as I can tell. |
TimothyGu
commented
Apr 26, 2018
Ah oops. In that case LGTM either way. |
richardlau
left a comment
There was a problem hiding this comment.
I prefer to keep isFd as it more clearly indicates the intent (as opposed to implementation).
danbev
commented
Apr 27, 2018
BridgeAR
commented
Apr 28, 2018
Landed in bdf0d9b 🎉 |
This commit updates the isFd function to call isUint32 instead of doing the same thing. PR-URL: nodejs#20330 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit updates the isFd function to call isUint32 instead of doing the same thing. PR-URL: #20330 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit updates the isFd function to call isUint32 instead of
doing the same thing. I was tempted to remove isFd and just use isUint32
instead but wanted to get some feedback from others regarding
readablity.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes