Skip to content

Commit 0ca3be5

Browse files
format-cpp
1 parent 25be48a commit 0ca3be5

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

src/node_report.cc

+10-12
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,7 @@ static void PrintVersionInformation(JSONWriter* writer, bool network_disabled) {
303303
}
304304

305305
PrintCpuInfo(writer);
306-
if (!network_disabled)
307-
PrintNetworkInterfaceInfo(writer);
306+
if (!network_disabled) PrintNetworkInterfaceInfo(writer);
308307

309308
char host[UV_MAXHOSTNAMESIZE];
310309
size_t host_size = sizeof(host);
@@ -923,16 +922,15 @@ std::string TriggerNodeReport(Isolate* isolate,
923922

924923
bool network_disabled = env->options()->report_network_disabled;
925924

926-
report::WriteNodeReport(
927-
isolate,
928-
env,
929-
message,
930-
trigger,
931-
filename,
932-
*outstream,
933-
error,
934-
compact,
935-
network_disabled);
925+
report::WriteNodeReport(isolate,
926+
env,
927+
message,
928+
trigger,
929+
filename,
930+
*outstream,
931+
error,
932+
compact,
933+
network_disabled);
936934

937935
// Do not close stdout/stderr, only close files we opened.
938936
if (outfile.is_open()) {

src/node_report_module.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ static void GetNetworkDisabled(const FunctionCallbackInfo<Value>& info) {
9090
}
9191

9292
static void SetNetworkDisabled(const FunctionCallbackInfo<Value>& info) {
93-
Mutex::ScopedLock lock(per_process::cli_options_mutex);
93+
Mutex::ScopedLock lock(per_process::cli_options_mutex);
9494
Environment* env = Environment::GetCurrent(info);
9595
Isolate* isolate = env->isolate();
96-
env->options()->report_network_disabled
97-
= info[0]->ToBoolean(isolate)->Value();
96+
env->options()->report_network_disabled =
97+
info[0]->ToBoolean(isolate)->Value();
9898
}
9999

100100
static void GetDirectory(const FunctionCallbackInfo<Value>& info) {

0 commit comments

Comments
 (0)