Skip to content
Permalink
Browse files

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 <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 Apr 26, 2018
1 parent fd912a3 commit e45e5b809d88b2b117b110e135f689c91386a23b
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/fs.js
@@ -151,9 +151,7 @@ function makeStatsCallback(cb) {
};
}

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

fs.Stats = Stats;

0 comments on commit e45e5b8

Please sign in to comment.
You can’t perform that action at this time.