aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/client/channel_cc.cc
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2018-10-12 14:33:45 -0700
committerGravatar Yash Tibrewal <yashkt@google.com>2018-10-16 14:10:30 -0700
commit6fb7bd23bf05b89394ed5ae6e8f60332d0f02fc6 (patch)
treec752b11cc0128ec7a342def2133c4c32772f4001 /src/cpp/client/channel_cc.cc
parent6f05a711e651196672450693493dee181368697d (diff)
s/GPR_ASSERT/GPR_CODEGEN_ASSERT and few more bugs
Diffstat (limited to 'src/cpp/client/channel_cc.cc')
-rw-r--r--src/cpp/client/channel_cc.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cpp/client/channel_cc.cc b/src/cpp/client/channel_cc.cc
index 4d509c93c2..12ff20c7ea 100644
--- a/src/cpp/client/channel_cc.cc
+++ b/src/cpp/client/channel_cc.cc
@@ -57,9 +57,8 @@ Channel::Channel(
std::unique_ptr<experimental::ClientInterceptorFactoryInterface>>>
interceptor_creators)
: host_(host), c_channel_(channel) {
- auto* vector = interceptor_creators.release();
- if (vector != nullptr) {
- interceptor_creators_ = std::move(*vector);
+ if (interceptor_creators != nullptr) {
+ interceptor_creators_ = std::move(*interceptor_creators);
}
g_gli_initializer.summon();
}