From bdf0d9b364094805183be3197b6099dd0c88a246 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Thu, 26 Apr 2018 13:22:14 +0200 Subject: [PATCH] fs: point isFd to isUint32 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit updates the isFd function to call isUint32 instead of doing the same thing. PR-URL: https://github.com/nodejs/node/pull/20330 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Tobias Nießen Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Richard Lau Reviewed-By: Joyee Cheung Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell --- lib/fs.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/fs.js b/lib/fs.js index c49d470f0355dc..50913866f9fdfd 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -153,9 +153,7 @@ function makeStatsCallback(cb) { }; } -function isFd(path) { - return (path >>> 0) === path; -} +const isFd = isUint32; fs.Stats = Stats;