Skip to content

Commit

Permalink
wrap if-body in braces
Browse files Browse the repository at this point in the history
  • Loading branch information
devjgm committed Nov 20, 2021
1 parent 20ac432 commit f32a124
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion google/cloud/status.cc
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ std::ostream& operator<<(std::ostream& os, Status const& s) {
if (s.ok()) return os << StatusCode::kOk;
os << s.code() << ": " << s.message();
auto const& e = s.error_info();
if (e.reason().empty() && e.domain().empty() && e.metadata().empty())
if (e.reason().empty() && e.domain().empty() && e.metadata().empty()) {
return os;
}
os << " error_info={reason=" << e.reason();
os << ", domain=" << e.domain();
os << ", metadata={";
Expand Down

0 comments on commit f32a124

Please sign in to comment.