Skip to content

Commit

Permalink
fs: point isFd to isUint32
Browse files Browse the repository at this point in the history
This commit updates the isFd function to call isUint32 instead of
doing the same thing.

PR-URL: nodejs#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]>
  • Loading branch information
danbev authored and BridgeAR committed Apr 28, 2018
1 parent 65021c5 commit bdf0d9b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,7 @@ function makeStatsCallback(cb) {
};
}

function isFd(path) {
return (path >>> 0) === path;
}
const isFd = isUint32;

fs.Stats = Stats;

Expand Down

0 comments on commit bdf0d9b

Please sign in to comment.