Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDoyle committed Feb 19, 2025
1 parent 891d86b commit 0aaca5a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/plugins/google-cloud/src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ export async function credentialsFromEnvironment(): Promise<
* can be handy to get access to the current credential for logging debugging
* information or other purposes.
**/
export async function resolveCurrentPrincipal(
projectId?: string
): Promise<GcpPrincipal> {
export async function resolveCurrentPrincipal(): Promise<GcpPrincipal> {
const envCredentials = await credentialsFromEnvironment();
let adcCredentials = {} as CredentialBody;
try {
Expand All @@ -85,7 +83,7 @@ export async function resolveCurrentPrincipal(
envCredentials.credentials?.client_email ?? adcCredentials.client_email;

return {
projectId: projectId ?? envCredentials.projectId,
projectId: envCredentials.projectId,
serviceAccountEmail,
};
}

0 comments on commit 0aaca5a

Please sign in to comment.