@@ -134,8 +134,7 @@ static void IsFileTrustedBySystemCodeIntegrityPolicy(
134
134
// IsInteractiveModeDisabled
135
135
// Queries operating system code integrity policy to determine if
136
136
// the policy is requesting NodeJS to disable interactive mode.
137
- static void IsInteractiveModeDisabled (const FunctionCallbackInfo<Value>& args)
138
- {
137
+ static void IsInteractiveModeDisabled (const FunctionCallbackInfo<Value>& args) {
139
138
CHECK_EQ (args.Length (), 0 );
140
139
141
140
Environment* env = Environment::GetCurrent (args);
@@ -177,20 +176,20 @@ static void IsInteractiveModeDisabled(const FunctionCallbackInfo<Value>& args)
177
176
ULONG valueSize = sizeof (int );
178
177
int isInteractiveModeDisabled = 0 ;
179
178
HRESULT hr =
180
- per_process::WldpQuerySecurityPolicy (&providerName,
181
- &keyName,
182
- &valueName,
183
- &valueType,
184
- &isInteractiveModeDisabled,
185
- &valueSize);
179
+ per_process::WldpQuerySecurityPolicy (&providerName,
180
+ &keyName,
181
+ &valueName,
182
+ &valueType,
183
+ &isInteractiveModeDisabled,
184
+ &valueSize);
186
185
187
186
if (FAILED (hr)) {
188
187
args.GetReturnValue ().SetFalse ();
189
188
return ;
190
189
}
191
190
192
191
args.GetReturnValue ().Set (Boolean::New (
193
- env->isolate (), static_cast <bool >(isInteractiveModeDisabled)));
192
+ env->isolate (), static_cast <bool >(isInteractiveModeDisabled)));
194
193
}
195
194
}
196
195
@@ -250,7 +249,7 @@ static void IsSystemEnforcingCodeIntegrity(
250
249
}
251
250
252
251
args.GetReturnValue ().Set (Boolean::New (
253
- env->isolate (), static_cast <bool >(isCodeIntegrityEnforced)));
252
+ env->isolate (), static_cast <bool >(isCodeIntegrityEnforced)));
254
253
}
255
254
}
256
255
@@ -264,7 +263,7 @@ void Initialize(Local<Object> target,
264
263
IsFileTrustedBySystemCodeIntegrityPolicy);
265
264
266
265
SetMethod (
267
- context, target, " isInteractiveModeDisabled" , IsInteractiveModeDisabled);
266
+ context, target, " isInteractiveModeDisabled" , IsInteractiveModeDisabled);
268
267
269
268
SetMethod (context,
270
269
target,
0 commit comments