Skip to content

Commit

Permalink
fs: remove unused option in fs.fstatSync()
Browse files Browse the repository at this point in the history
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 85ab2f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/fs.js
Expand Up @@ -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);
Expand Down

0 comments on commit 85ab2f8

Please sign in to comment.