Skip to content

Commit 63acd82

Browse files
committed
add else
1 parent ac855e8 commit 63acd82

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

google/cloud/testing_util/credentials.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ struct TestCredentialsVisitor : public internal::CredentialsVisitor {
5353
}
5454
void visit(internal::ServiceAccountConfig const& cfg) override {
5555
name = "ServiceAccountConfig";
56-
if (cfg.json_object()) json_object = *cfg.json_object();
57-
json_object = "cfg.file_path testing not implemented";
56+
if (cfg.json_object()) {
57+
json_object = *cfg.json_object();
58+
} else {
59+
json_object = "cfg.file_path testing not implemented";
60+
}
5861
}
5962
void visit(internal::ExternalAccountConfig const& cfg) override {
6063
name = "ExternalAccountConfig";

0 commit comments

Comments
 (0)