Skip to content

Commit 4a24cda

Browse files
committed
fs: remove duplicate getValidatedPath calls
1 parent e1fc3dc commit 4a24cda

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/fs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,7 +1641,7 @@ function statfs(path, options = { bigint: false }, callback) {
16411641

16421642
callback(err, getStatFsFromBinding(stats));
16431643
};
1644-
binding.statfs(getValidatedPath(path), options.bigint, req);
1644+
binding.statfs(path, options.bigint, req);
16451645
}
16461646

16471647
/**
@@ -1676,7 +1676,7 @@ function lstatSync(path, options = { bigint: false, throwIfNoEntry: true }) {
16761676
throw new ERR_ACCESS_DENIED('Access to this API has been restricted', 'FileSystemRead', resource);
16771677
}
16781678
const stats = binding.lstat(
1679-
getValidatedPath(path),
1679+
path,
16801680
options.bigint,
16811681
undefined,
16821682
options.throwIfNoEntry,

0 commit comments

Comments
 (0)