Skip to content

Commit

Permalink
fs: fix file descriptor validator
Browse files Browse the repository at this point in the history
PR-URL: #49752
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
anonrig committed Sep 24, 2023
1 parent c9e72e3 commit 5d6aa85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const {
CHAR_BACKWARD_SLASH,
} = require('internal/constants');
const {
isUint32,
isInt32,
parseFileMode,
validateBoolean,
validateBuffer,
Expand Down Expand Up @@ -201,7 +201,7 @@ function makeStatsCallback(cb) {
};
}

const isFd = isUint32;
const isFd = isInt32;

function isFileType(stats, fileType) {
// Use stats array directly to avoid creating an fs.Stats instance just for
Expand Down

0 comments on commit 5d6aa85

Please sign in to comment.