Skip to content

Commit 190e311

Browse files
committed
Don't early-capture the fs.lchownSync method
This is breaking some tests where I clobber the fs method to add tests or simulate failures.
1 parent df2826a commit 190e311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chownr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const handleEISDirSync =
3535
fs.chownSync(path, uid, gid)
3636
}
3737
}
38-
: fs[LCHOWNSYNC]
38+
: (path, uid, gid) => fs[LCHOWNSYNC](path, uid, gid)
3939

4040
// fs.readdir could only accept an options object as of node v6
4141
const nodeVersion = process.version

0 commit comments

Comments
 (0)