Skip to content
This repository was archived by the owner on Dec 3, 2023. It is now read-only.

Commit cd6eabf

Browse files
codyosschingor13
authored andcommitted
fix: cast to proper interface (#124)
Fixes #123
1 parent 01cbf1e commit cd6eabf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)