diff --git a/src/node_report.cc b/src/node_report.cc index da87567a39f664..0aacaa02be4fbe 100644 --- a/src/node_report.cc +++ b/src/node_report.cc @@ -303,8 +303,7 @@ static void PrintVersionInformation(JSONWriter* writer, bool network_disabled) { } PrintCpuInfo(writer); - if (!network_disabled) - PrintNetworkInterfaceInfo(writer); + if (!network_disabled) PrintNetworkInterfaceInfo(writer); char host[UV_MAXHOSTNAMESIZE]; size_t host_size = sizeof(host); @@ -923,16 +922,15 @@ std::string TriggerNodeReport(Isolate* isolate, bool network_disabled = env->options()->report_network_disabled; - report::WriteNodeReport( - isolate, - env, - message, - trigger, - filename, - *outstream, - error, - compact, - network_disabled); + report::WriteNodeReport(isolate, + env, + message, + trigger, + filename, + *outstream, + error, + compact, + network_disabled); // Do not close stdout/stderr, only close files we opened. if (outfile.is_open()) { diff --git a/src/node_report_module.cc b/src/node_report_module.cc index 13aa93aef4db0a..bf1d4fdbaecfab 100644 --- a/src/node_report_module.cc +++ b/src/node_report_module.cc @@ -90,11 +90,11 @@ static void GetNetworkDisabled(const FunctionCallbackInfo& info) { } static void SetNetworkDisabled(const FunctionCallbackInfo& info) { - Mutex::ScopedLock lock(per_process::cli_options_mutex); + Mutex::ScopedLock lock(per_process::cli_options_mutex); Environment* env = Environment::GetCurrent(info); Isolate* isolate = env->isolate(); - env->options()->report_network_disabled - = info[0]->ToBoolean(isolate)->Value(); + env->options()->report_network_disabled = + info[0]->ToBoolean(isolate)->Value(); } static void GetDirectory(const FunctionCallbackInfo& info) {