Skip to content

Commit b4bc69d

Browse files
format cpp code
1 parent 577fc69 commit b4bc69d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/node_file.cc

+3-5
Original file line numberDiff line numberDiff line change
@@ -3385,7 +3385,7 @@ static void CpSyncOverrideFile(const FunctionCallbackInfo<Value>& args) {
33853385
auto dest_path_str = PathToString(dest_path);
33863386
std::string message = "operation not permitted, unlink";
33873387
return env->ThrowErrnoException(
3388-
EPERM, "unlink", message.c_str(), dest_path.c_str());
3388+
EPERM, "unlink", message.c_str(), dest_path.c_str());
33893389
}
33903390

33913391
if (mode == 0) {
@@ -3397,8 +3397,7 @@ static void CpSyncOverrideFile(const FunctionCallbackInfo<Value>& args) {
33973397
}
33983398
} else {
33993399
uv_fs_t req;
3400-
auto cleanup =
3401-
OnScopeLeave([&req]() { uv_fs_req_cleanup(&req); });
3400+
auto cleanup = OnScopeLeave([&req]() { uv_fs_req_cleanup(&req); });
34023401
int result = uv_fs_copyfile(nullptr, &req, *src, *dest, mode, nullptr);
34033402
if (is_uv_error(result)) {
34043403
return env->ThrowUVException(result, "copyfile", nullptr, *src, *dest);
@@ -3407,8 +3406,7 @@ static void CpSyncOverrideFile(const FunctionCallbackInfo<Value>& args) {
34073406

34083407
if (preserve_timestamps) {
34093408
uv_fs_t req;
3410-
auto cleanup =
3411-
OnScopeLeave([&req]() { uv_fs_req_cleanup(&req); });
3409+
auto cleanup = OnScopeLeave([&req]() { uv_fs_req_cleanup(&req); });
34123410
int result = uv_fs_stat(nullptr, &req, *src, nullptr);
34133411
if (is_uv_error(result)) {
34143412
return env->ThrowUVException(result, "stat", nullptr, *src);

0 commit comments

Comments
 (0)