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 juanarbol committed Oct 11, 2022
1 parent 90eaae3 commit bbbb446
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1529,11 +1529,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 bbbb446

Please sign in to comment.