Commit 25cbf495 authored by TousakaRin's avatar TousakaRin

Remove unnecessary modifications and optimize code style

parent 4962beee
......@@ -158,10 +158,8 @@ void StatusService::default_method(::google::protobuf::RpcController* cntl_base,
if (mp->http_url) {
os << " @" << *mp->http_url;
}
if (NULL != mp->status &&
mp->status->max_concurrency() > 0) {
os << " current_max_concurrency="
<< mp->status->max_concurrency();
if (mp->status && mp->status->max_concurrency() > 0) {
os << " max_concurrency=" << mp->status->max_concurrency();
}
}
os << "</h4>\n";
......@@ -172,10 +170,8 @@ void StatusService::default_method(::google::protobuf::RpcController* cntl_base,
if (mp->http_url) {
os << " @" << *mp->http_url;
}
if (NULL != mp->status &&
mp->status->max_concurrency() > 0) {
os << " max_concurrency="
<< mp->status->max_concurrency();
if (mp->status && mp->status->max_concurrency() > 0) {
os << " max_concurrency=" << mp->status->max_concurrency();
}
}
os << '\n';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment