Skip to content

Commit e45e5b8

Browse files
danbevMylesBorins
authored andcommitted
fs: point isFd to isUint32
This commit updates the isFd function to call isUint32 instead of doing the same thing. PR-URL: #20330 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent fd912a3 commit e45e5b8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/fs.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,7 @@ function makeStatsCallback(cb) {
151151
};
152152
}
153153

154-
function isFd(path) {
155-
return (path >>> 0) === path;
156-
}
154+
const isFd = isUint32;
157155

158156
fs.Stats = Stats;
159157

0 commit comments

Comments
 (0)