diff --git a/src/core/lib/gprpp/ref_counted.h b/src/core/lib/gprpp/ref_counted.h index 294f0230525..5eaf5cda0f1 100644 --- a/src/core/lib/gprpp/ref_counted.h +++ b/src/core/lib/gprpp/ref_counted.h @@ -330,9 +330,8 @@ class RefCounted : public Impl { // RefIfNonZero() for const types. GRPC_MUST_USE_RESULT RefCountedPtr RefIfNonZero() const { - return RefCountedPtr(refs_.RefIfNonZero() - ? static_cast(this) - : nullptr); + return RefCountedPtr( + refs_.RefIfNonZero() ? static_cast(this) : nullptr); } GRPC_MUST_USE_RESULT RefCountedPtr RefIfNonZero( const DebugLocation& location, const char* reason) const { @@ -362,8 +361,8 @@ class RefCounted : public Impl { friend class RefCountedPtr; void IncrementRefCount() const { refs_.Ref(); } - void IncrementRefCount(const DebugLocation& location, const char* reason) - const { + void IncrementRefCount(const DebugLocation& location, + const char* reason) const { refs_.Ref(location, reason); }