Skip to content

Commit 2cc10da

Browse files
authored
fs: remove duplicate getValidatedPath calls
PR-URL: #61359 Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Xuguang Mei <meixuguang@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent 33ea43e commit 2cc10da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/fs.js

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

16491649
callback(err, getStatFsFromBinding(stats));
16501650
};
1651-
binding.statfs(getValidatedPath(path), options.bigint, req);
1651+
binding.statfs(path, options.bigint, req);
16521652
}
16531653

16541654
/**
@@ -1683,7 +1683,7 @@ function lstatSync(path, options = { bigint: false, throwIfNoEntry: true }) {
16831683
throw new ERR_ACCESS_DENIED('Access to this API has been restricted', 'FileSystemRead', resource);
16841684
}
16851685
const stats = binding.lstat(
1686-
getValidatedPath(path),
1686+
path,
16871687
options.bigint,
16881688
undefined,
16891689
options.throwIfNoEntry,

0 commit comments

Comments
 (0)