diff options
author | 2018-07-18 09:04:10 -0700 | |
---|---|---|
committer | 2018-07-18 09:05:21 -0700 | |
commit | bc3723bc045a008d13cec3bc71a1af2c6c20ac2a (patch) | |
tree | 252991778c93bd84e7ac0f6281659d4dc8c34c5c /src/core/ext/filters/client_channel/client_channel_channelz.cc | |
parent | a9f3d78c6ef4897816f696366814967fd5db2ad6 (diff) |
Cland tidy fixes for channelz
Diffstat (limited to 'src/core/ext/filters/client_channel/client_channel_channelz.cc')
-rw-r--r-- | src/core/ext/filters/client_channel/client_channel_channelz.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ext/filters/client_channel/client_channel_channelz.cc b/src/core/ext/filters/client_channel/client_channel_channelz.cc index 235b8f3207..8cfc3f8a4c 100644 --- a/src/core/ext/filters/client_channel/client_channel_channelz.cc +++ b/src/core/ext/filters/client_channel/client_channel_channelz.cc @@ -69,7 +69,7 @@ void ClientChannelNode::PopulateChildRefs(grpc_json* json) { grpc_json* json_iterator = nullptr; grpc_client_channel_populate_child_refs(client_channel_, &child_subchannels, &child_channels); - if (child_subchannels.size() > 0) { + if (!child_subchannels.empty()) { grpc_json* array_parent = grpc_json_create_child( nullptr, json, "subchannelRef", nullptr, GRPC_JSON_ARRAY, false); for (size_t i = 0; i < child_subchannels.size(); ++i) { @@ -80,7 +80,7 @@ void ClientChannelNode::PopulateChildRefs(grpc_json* json) { child_subchannels[i]); } } - if (child_channels.size() > 0) { + if (!child_channels.empty()) { grpc_json* array_parent = grpc_json_create_child( nullptr, json, "channelRef", nullptr, GRPC_JSON_ARRAY, false); json_iterator = nullptr; |