Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.

Commit 8cd5e0b

Browse files
codyosschingor13
authored andcommitted
fix: cast to proper interface (#124)
Fixes #123
1 parent 11c5ff1 commit 8cd5e0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java-core/google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public B setCredentials(Credentials credentials) {
218218
}
219219

220220
if (this.quotaProjectId == null && credentials instanceof QuotaProjectIdProvider) {
221-
this.quotaProjectId = ((ServiceAccountCredentials) credentials).getQuotaProjectId();
221+
this.quotaProjectId = ((QuotaProjectIdProvider) credentials).getQuotaProjectId();
222222
}
223223
return self();
224224
}

0 commit comments

Comments
 (0)