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 <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>
  • 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.