Skip to content

Commit dd08af9

Browse files
committed
Format
1 parent f413971 commit dd08af9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/node_external_reference.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ using CFunctionCallbackWithStrings =
2828
using CFunctionWithUint32 = uint32_t (*)(v8::Local<v8::Value>,
2929
const uint32_t input);
3030
using CFunctionCallbackWithStringOptions =
31-
bool (*)(v8::Local<v8::Object>, const v8::FastOneByteString& input,
31+
bool (*)(v8::Local<v8::Object>,
32+
const v8::FastOneByteString& input,
3233
// NOLINTNEXTLINE(runtime/references) This is V8 api.
3334
v8::FastApiCallbackOptions& options);
3435

src/node_file.cc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,9 +1111,8 @@ bool FastExistsSync(v8::Local<v8::Object> recv,
11111111
memcpy(path.out(), string.data, string.length);
11121112
path.SetLengthAndZeroTerminate(string.length);
11131113

1114-
if (UNLIKELY(!env->permission()
1115-
->is_granted(permission::PermissionScope::kFileSystemRead,
1116-
path.ToStringView()))) {
1114+
if (UNLIKELY(!env->permission()->is_granted(
1115+
permission::PermissionScope::kFileSystemRead, path.ToStringView()))) {
11171116
options.fallback = true;
11181117
return false;
11191118
}
@@ -3409,8 +3408,8 @@ static void CreatePerIsolateProperties(IsolateData* isolate_data,
34093408
SetMethodNoSideEffect(isolate, target, "accessSync", AccessSync);
34103409
SetMethod(isolate, target, "close", Close);
34113410
SetMethod(isolate, target, "closeSync", CloseSync);
3412-
SetFastMethodNoSideEffect(isolate, target, "existsSync",
3413-
ExistsSync, &fast_exists_sync_);
3411+
SetFastMethodNoSideEffect(
3412+
isolate, target, "existsSync", ExistsSync, &fast_exists_sync_);
34143413
SetMethod(isolate, target, "open", Open);
34153414
SetMethod(isolate, target, "openSync", OpenSync);
34163415
SetMethod(isolate, target, "openFileHandle", OpenFileHandle);

0 commit comments

Comments
 (0)