Skip to content

Commit

Permalink
fs: fix file descriptor validator
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Sep 21, 2023
1 parent 2e4e1e1 commit 394e7e0
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 394e7e0

Please sign in to comment.