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: nodejs/node#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 guangwong committed Jan 3, 2023
1 parent 97e4569 commit bb0ea23
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 bb0ea23

Please sign in to comment.