diff --git a/test/cpp/util/test_credentials_provider.cc b/test/cpp/util/test_credentials_provider.cc index 65d32057673..e314fd6d75a 100644 --- a/test/cpp/util/test_credentials_provider.cc +++ b/test/cpp/util/test_credentials_provider.cc @@ -139,9 +139,7 @@ class DefaultCredentialsProvider : public CredentialsProvider { gpr_once g_once_init_provider = GPR_ONCE_INIT; CredentialsProvider* g_provider = nullptr; -void CreateDefaultProvider() { - g_provider = new DefaultCredentialsProvider; -} +void CreateDefaultProvider() { g_provider = new DefaultCredentialsProvider; } CredentialsProvider* GetProvider() { gpr_once_init(&g_once_init_provider, &CreateDefaultProvider);