Skip to content

Commit a161a9b

Browse files
committed
src: remove unnecessary filename variable
PR-URL: #25610 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]>
1 parent 64959b6 commit a161a9b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/node_errors.cc

+2-3
Original file line numberDiff line numberDiff line change
@@ -319,17 +319,16 @@ void OnFatalError(const char* location, const char* message) {
319319
}
320320
#ifdef NODE_REPORT
321321
Isolate* isolate = Isolate::GetCurrent();
322-
std::string filename;
323322
Environment* env = Environment::GetCurrent(isolate);
324323
if (env != nullptr) {
325324
std::shared_ptr<PerIsolateOptions> options = env->isolate_data()->options();
326325
if (options->report_on_fatalerror) {
327326
report::TriggerNodeReport(
328-
isolate, env, message, __func__, filename, Local<String>());
327+
isolate, env, message, __func__, "", Local<String>());
329328
}
330329
} else {
331330
report::TriggerNodeReport(
332-
isolate, nullptr, message, __func__, filename, Local<String>());
331+
isolate, nullptr, message, __func__, "", Local<String>());
333332
}
334333
#endif // NODE_REPORT
335334
fflush(stderr);

0 commit comments

Comments
 (0)