Skip to content
Permalink
Browse files
fs: remove unused option in fs.fstatSync()
PR-URL: #44613
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: theanarkh <theratliter@gmail.com>
  • Loading branch information
LiviaMedeiros authored and RafaelGSS committed Sep 26, 2022
1 parent 3f710fa commit 85ab2f857f36174721ddc4d77af618840e4f8de9
Showing 1 changed file with 1 addition and 2 deletions.
@@ -1537,11 +1537,10 @@ function hasNoEntryError(ctx) {
* @param {number} fd
* @param {{
* bigint?: boolean;
* throwIfNoEntry?: boolean;
* }} [options]
* @returns {Stats}
*/
function fstatSync(fd, options = { bigint: false, throwIfNoEntry: true }) {
function fstatSync(fd, options = { bigint: false }) {
fd = getValidatedFd(fd);
const ctx = { fd };
const stats = binding.fstat(fd, options.bigint, undefined, ctx);

0 comments on commit 85ab2f8

Please sign in to comment.