Skip to content

Commit 6083812

Browse files
committed
code cleaner
1 parent 76f8d86 commit 6083812

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/fs.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,12 +1640,11 @@ function stat(path, options = { bigint: false }, callback) {
16401640
callback = makeStatsCallback(callback);
16411641
path = getValidatedPath(path);
16421642

1643-
if (checkAborted(options.signal, callback))
1644-
return;
1643+
if (checkAborted(options.signal, callback)) return;
16451644

16461645
const req = new FSReqCallback(options.bigint);
16471646
req.oncomplete = callback;
1648-
binding.stat(path, options.bigint, req);
1647+
binding.stat(getValidatedPath(path), options.bigint, req);
16491648
}
16501649

16511650
function statfs(path, options = { bigint: false }, callback) {

0 commit comments

Comments
 (0)