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: #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 MylesBorins committed May 4, 2018
1 parent fd912a3 commit e45e5b8
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 @@ -151,9 +151,7 @@ function makeStatsCallback(cb) {
};
}

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

fs.Stats = Stats;

Expand Down

0 comments on commit e45e5b8

Please sign in to comment.