Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 606184f

Browse filesBrowse files
mertcanaltinaduh95
authored andcommitted
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 ef01f0c commit 606184f
Copy full SHA for 606184f

1 file changed

+2-2Lines changed: 2 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/fs.js‎

Copy file name to clipboardExpand all lines: lib/fs.js
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.