From 9e8a13bb93ea1e94e891a5b2fc8faae517a0cb1a Mon Sep 17 00:00:00 2001 From: Esun Kim Date: Mon, 19 Oct 2020 17:03:35 -0700 Subject: [PATCH] Fix by tidy-readability-redundant-control-flow --- src/core/lib/compression/stream_compression_identity.cc | 4 +--- src/core/lib/surface/call.cc | 2 +- test/cpp/naming/resolver_component_tests_runner_invoker.cc | 1 - test/cpp/qps/client_callback.cc | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/core/lib/compression/stream_compression_identity.cc b/src/core/lib/compression/stream_compression_identity.cc index d5e3afff052..78486f09f05 100644 --- a/src/core/lib/compression/stream_compression_identity.cc +++ b/src/core/lib/compression/stream_compression_identity.cc @@ -82,9 +82,7 @@ grpc_stream_compression_context_create_identity( } static void grpc_stream_compression_context_destroy_identity( - grpc_stream_compression_context* /*ctx*/) { - return; -} + grpc_stream_compression_context* /*ctx*/) {} const grpc_stream_compression_vtable grpc_stream_compression_identity_vtable = { grpc_stream_compress_identity, grpc_stream_decompress_identity, diff --git a/src/core/lib/surface/call.cc b/src/core/lib/surface/call.cc index 978cc6e7530..5fdb7438f98 100644 --- a/src/core/lib/surface/call.cc +++ b/src/core/lib/surface/call.cc @@ -811,7 +811,7 @@ uint32_t grpc_call_test_only_get_message_flags(grpc_call* call) { return flags; } -static void destroy_encodings_accepted_by_peer(void* /*p*/) { return; } +static void destroy_encodings_accepted_by_peer(void* /*p*/) {} static void set_encodings_accepted_by_peer(grpc_call* /*call*/, grpc_mdelem mdel, diff --git a/test/cpp/naming/resolver_component_tests_runner_invoker.cc b/test/cpp/naming/resolver_component_tests_runner_invoker.cc index 9780624b400..9445b70d245 100644 --- a/test/cpp/naming/resolver_component_tests_runner_invoker.cc +++ b/test/cpp/naming/resolver_component_tests_runner_invoker.cc @@ -95,7 +95,6 @@ void RunSigHandlingThread(SubProcess* test_driver, gpr_mu* test_driver_mu, "Test timeout reached or received signal. Interrupting test driver " "child process."); test_driver->Interrupt(); - return; } } // namespace diff --git a/test/cpp/qps/client_callback.cc b/test/cpp/qps/client_callback.cc index 90743ae0a27..b8dedc28366 100644 --- a/test/cpp/qps/client_callback.cc +++ b/test/cpp/qps/client_callback.cc @@ -164,7 +164,7 @@ class CallbackUnaryClient final : public CallbackClient { return true; } - void InitThreadFuncImpl(size_t /*thread_idx*/) override { return; } + void InitThreadFuncImpl(size_t /*thread_idx*/) override {} private: void ScheduleRpc(Thread* t, size_t vector_idx) {