Skip to content
Permalink
Browse files
fix: cast to proper interface (#124)
Fixes #123
  • Loading branch information
codyoss authored and chingor13 committed Jan 9, 2020
1 parent 01cbf1e commit cd6eabffcdeed485aba088336fa473a6b85c752d
Showing with 1 addition and 1 deletion.
  1. +1 −1 google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java
@@ -218,7 +218,7 @@ public B setCredentials(Credentials credentials) {
}

if (this.quotaProjectId == null && credentials instanceof QuotaProjectIdProvider) {
this.quotaProjectId = ((ServiceAccountCredentials) credentials).getQuotaProjectId();
this.quotaProjectId = ((QuotaProjectIdProvider) credentials).getQuotaProjectId();
}
return self();
}

0 comments on commit cd6eabf

Please sign in to comment.