Skip to content

Commit 5a527d5

Browse files
fixup! fs: improve error perf of sync chmod+fchmod
Co-authored-by: Darshan Sen <[email protected]>
1 parent a548951 commit 5a527d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_file.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -2720,7 +2720,7 @@ static void ChmodSync(const FunctionCallbackInfo<Value>& args) {
27202720
int mode = args[1].As<Int32>()->Value();
27212721

27222722
uv_fs_t req;
2723-
auto make = OnScopeLeave([&req]() { uv_fs_req_cleanup(&req); });
2723+
auto cleanup = OnScopeLeave([&req]() { uv_fs_req_cleanup(&req); });
27242724
FS_SYNC_TRACE_BEGIN(chmod);
27252725
int err = uv_fs_chmod(nullptr, &req, *path, mode, nullptr);
27262726
FS_SYNC_TRACE_END(chmod);
@@ -2772,7 +2772,7 @@ static void FChmodSync(const FunctionCallbackInfo<Value>& args) {
27722772
int mode = args[1].As<Int32>()->Value();
27732773

27742774
uv_fs_t req;
2775-
auto make = OnScopeLeave([&req]() { uv_fs_req_cleanup(&req); });
2775+
auto cleanup = OnScopeLeave([&req]() { uv_fs_req_cleanup(&req); });
27762776
FS_SYNC_TRACE_BEGIN(fchmod);
27772777
int err = uv_fs_fchmod(nullptr, &req, fd, mode, nullptr);
27782778
FS_SYNC_TRACE_END(fchmod);

0 commit comments

Comments
 (0)