Skip to content

Commit b2096bb

Browse files
committed
fix formatting
1 parent 1bb1dee commit b2096bb

File tree

1 file changed

+22
-29
lines changed

1 file changed

+22
-29
lines changed

src/node_code_integrity.cc

Lines changed: 22 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#include "node.h"
66
#include "node_errors.h"
77
#include "node_external_reference.h"
8-
#include "v8.h"
98
#include "util.h"
9+
#include "v8.h"
1010

1111
namespace node {
1212

@@ -134,8 +134,8 @@ static void IsFileTrustedBySystemCodeIntegrityPolicy(
134134
// IsInteractiveModeDisabled
135135
// Queries operating system code integrity policy to determine if
136136
// the policy is requesting NodeJS to disable interactive mode.
137-
static void IsInteractiveModeDisabled(
138-
const FunctionCallbackInfo<Value>& args) {
137+
static void IsInteractiveModeDisabled(const FunctionCallbackInfo<Value>& args)
138+
{
139139
CHECK_EQ(args.Length(), 0);
140140

141141
Environment* env = Environment::GetCurrent(args);
@@ -176,23 +176,21 @@ static void IsInteractiveModeDisabled(
176176
WLDP_SECURE_SETTING_VALUE_TYPE_BOOLEAN;
177177
ULONG valueSize = sizeof(int);
178178
int isInteractiveModeDisabled = 0;
179-
HRESULT hr = per_process::WldpQuerySecurityPolicy(
180-
&providerName,
181-
&keyName,
182-
&valueName,
183-
&valueType,
184-
&isInteractiveModeDisabled,
185-
&valueSize);
179+
HRESULT hr =
180+
per_process::WldpQuerySecurityPolicy(&providerName,
181+
&keyName,
182+
&valueName,
183+
&valueType,
184+
&isInteractiveModeDisabled,
185+
&valueSize);
186186

187187
if (FAILED(hr)) {
188188
args.GetReturnValue().SetFalse();
189189
return;
190190
}
191191

192-
args.GetReturnValue().Set(
193-
Boolean::New(
194-
env->isolate(),
195-
static_cast<bool>(isInteractiveModeDisabled)));
192+
args.GetReturnValue().Set(Boolean::New(
193+
env->isolate(), static_cast<bool>(isInteractiveModeDisabled)));
196194
}
197195
}
198196

@@ -239,23 +237,20 @@ static void IsSystemEnforcingCodeIntegrity(
239237
WLDP_SECURE_SETTING_VALUE_TYPE_BOOLEAN;
240238
ULONG valueSize = sizeof(int);
241239
int isCodeIntegrityEnforced = 0;
242-
HRESULT hr = per_process::WldpQuerySecurityPolicy(
243-
&providerName,
244-
&keyName,
245-
&valueName,
246-
&valueType,
247-
&isCodeIntegrityEnforced,
248-
&valueSize);
240+
HRESULT hr = per_process::WldpQuerySecurityPolicy(&providerName,
241+
&keyName,
242+
&valueName,
243+
&valueType,
244+
&isCodeIntegrityEnforced,
245+
&valueSize);
249246

250247
if (FAILED(hr)) {
251248
args.GetReturnValue().SetFalse();
252249
return;
253250
}
254251

255-
args.GetReturnValue().Set(
256-
Boolean::New(
257-
env->isolate(),
258-
static_cast<bool>(isCodeIntegrityEnforced)));
252+
args.GetReturnValue().Set(Boolean::New(
253+
env->isolate(), static_cast<bool>(isCodeIntegrityEnforced)));
259254
}
260255
}
261256

@@ -268,10 +263,8 @@ void Initialize(Local<Object> target,
268263
"isFileTrustedBySystemCodeIntegrityPolicy",
269264
IsFileTrustedBySystemCodeIntegrityPolicy);
270265

271-
SetMethod(context,
272-
target,
273-
"isInteractiveModeDisabled",
274-
IsInteractiveModeDisabled);
266+
SetMethod(
267+
context, target, "isInteractiveModeDisabled", IsInteractiveModeDisabled);
275268

276269
SetMethod(context,
277270
target,

0 commit comments

Comments
 (0)