Skip to content

Commit 2139597

Browse files
committed
address comment
1 parent a7b743e commit 2139597

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/core/credentials/transport/alts/grpc_alts_credentials_client_options.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,5 @@ static void alts_client_options_destroy(
135135
target_service_account_destroy(node);
136136
node = next_node;
137137
}
138-
if (client_options->token_fetcher != nullptr) {
139-
client_options->token_fetcher.reset();
140-
}
138+
client_options->token_fetcher.reset();
141139
}

src/core/credentials/transport/alts/grpc_alts_credentials_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ typedef struct target_service_account {
7070
typedef struct grpc_alts_credentials_client_options {
7171
grpc_alts_credentials_options base;
7272
target_service_account* target_account_list_head;
73-
std::shared_ptr<grpc::alts::TokenFetcher> token_fetcher = nullptr;
73+
std::shared_ptr<grpc::alts::TokenFetcher> token_fetcher;
7474
} grpc_alts_credentials_client_options;
7575

7676
///

0 commit comments

Comments
 (0)