We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac855e8 commit 63acd82Copy full SHA for 63acd82
1 file changed
google/cloud/testing_util/credentials.h
@@ -53,8 +53,11 @@ struct TestCredentialsVisitor : public internal::CredentialsVisitor {
53
}
54
void visit(internal::ServiceAccountConfig const& cfg) override {
55
name = "ServiceAccountConfig";
56
- if (cfg.json_object()) json_object = *cfg.json_object();
57
- json_object = "cfg.file_path testing not implemented";
+ if (cfg.json_object()) {
+ json_object = *cfg.json_object();
58
+ } else {
59
+ json_object = "cfg.file_path testing not implemented";
60
+ }
61
62
void visit(internal::ExternalAccountConfig const& cfg) override {
63
name = "ExternalAccountConfig";
0 commit comments