Skip to content

Commit

Permalink
Use std::endl instead of '\n'
Browse files Browse the repository at this point in the history
  • Loading branch information
PacificBlackDuck authored and windytan committed Feb 18, 2025
1 parent b1e87b9 commit 1392d74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/groups.cc
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,11 @@ void Station::updateAndPrint(const Group& group, std::ostream& stream) {
// incomplete JSON objects could get printed.
std::stringstream output_proxy_stream;
output_proxy_stream << json_;
stream << output_proxy_stream.str() << '\n';
stream << output_proxy_stream.str() << std::endl;
} catch (const std::exception& e) {
nlohmann::ordered_json json_from_exception;
json_from_exception["debug"] = std::string(e.what());
stream << json_from_exception << '\n';
stream << json_from_exception << std::endl;
}
}

Expand Down

0 comments on commit 1392d74

Please sign in to comment.