From 41b2143dcb154a57147d055b4e51b0296679773a Mon Sep 17 00:00:00 2001 From: Sree Kuchibhotla Date: Thu, 22 Oct 2015 10:42:40 -0700 Subject: [PATCH] Address code review comment --- test/cpp/interop/interop_client.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cpp/interop/interop_client.cc b/test/cpp/interop/interop_client.cc index 7af39422304..96502e58797 100644 --- a/test/cpp/interop/interop_client.cc +++ b/test/cpp/interop/interop_client.cc @@ -103,10 +103,10 @@ TestService::Stub* InteropClient::ServiceStub::Get() { void InteropClient::ServiceStub::Reset(std::shared_ptr channel) { channel_ = channel; - // Update stub_ as well. Note: If new_stub_every_call_ is true, we can set - // stub_ to nullptr since the next call to Get() will create a new stub + // Update stub_ as well. Note: If new_stub_every_call_ is true, we can reset + // the stub_ since the next call to Get() will create a new stub if (new_stub_every_call_) { - stub_.reset(nullptr); + stub_.reset(); } else { stub_ = TestService::NewStub(channel); }