@@ -3385,7 +3385,7 @@ static void CpSyncOverrideFile(const FunctionCallbackInfo<Value>& args) {
3385
3385
auto dest_path_str = PathToString (dest_path);
3386
3386
std::string message = " operation not permitted, unlink" ;
3387
3387
return env->ThrowErrnoException (
3388
- EPERM, " unlink" , message.c_str (), dest_path.c_str ());
3388
+ EPERM, " unlink" , message.c_str (), dest_path.c_str ());
3389
3389
}
3390
3390
3391
3391
if (mode == 0 ) {
@@ -3397,8 +3397,7 @@ static void CpSyncOverrideFile(const FunctionCallbackInfo<Value>& args) {
3397
3397
}
3398
3398
} else {
3399
3399
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); });
3402
3401
int result = uv_fs_copyfile (nullptr , &req, *src, *dest, mode, nullptr );
3403
3402
if (is_uv_error (result)) {
3404
3403
return env->ThrowUVException (result, " copyfile" , nullptr , *src, *dest);
@@ -3407,8 +3406,7 @@ static void CpSyncOverrideFile(const FunctionCallbackInfo<Value>& args) {
3407
3406
3408
3407
if (preserve_timestamps) {
3409
3408
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); });
3412
3410
int result = uv_fs_stat (nullptr , &req, *src, nullptr );
3413
3411
if (is_uv_error (result)) {
3414
3412
return env->ThrowUVException (result, " stat" , nullptr , *src);
0 commit comments