Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: remove unnecessary std::endl usage #30003

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/node_report.cc
Expand Up @@ -111,7 +111,7 @@ std::string TriggerNodeReport(Isolate* isolate,
}
// Check for errors on the file open
if (!outfile.is_open()) {
std::cerr << std::endl
std::cerr << '\n'
<< "Failed to open Node.js report file: " << filename;

if (env != nullptr && options->report_directory.length() > 0)
Expand All @@ -121,7 +121,7 @@ std::string TriggerNodeReport(Isolate* isolate,
return "";
}
outstream = &outfile;
std::cerr << std::endl << "Writing Node.js report to file: " << filename;
std::cerr << '\n' << "Writing Node.js report to file: " << filename;
}

WriteNodeReport(isolate, env, message, trigger, filename, *outstream,
Expand All @@ -132,7 +132,7 @@ std::string TriggerNodeReport(Isolate* isolate,
outfile.close();
}

std::cerr << std::endl << "Node.js report completed" << std::endl;
std::cerr << '\n' << "Node.js report completed" << std::endl;
return filename;
}

Expand Down