From c1d69616c3f928ff97f331c36cd88feaf87bb611 Mon Sep 17 00:00:00 2001 From: Mich Date: Mon, 5 Jun 2023 11:56:02 -0600 Subject: [PATCH] INT-7879: remove unnecessary type assertion --- src/google-cloud/client.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/google-cloud/client.ts b/src/google-cloud/client.ts index 7cc53f3e..790b337a 100644 --- a/src/google-cloud/client.ts +++ b/src/google-cloud/client.ts @@ -5,7 +5,7 @@ import { } from '@jupiterone/integration-sdk-core'; import { retry } from '@lifeomic/attempt'; import { GaxiosError, GaxiosResponse } from 'gaxios'; -import { BaseExternalAccountClient, CredentialBody } from 'google-auth-library'; +import { CredentialBody } from 'google-auth-library'; import { accesscontextmanager_v1, google } from 'googleapis'; import pMap from 'p-map'; import { IntegrationConfig } from '../types'; @@ -69,10 +69,9 @@ export class Client { scopes: ['https://www.googleapis.com/auth/cloud-platform'], }); - const client = - (await auth.getClient()) as unknown as BaseExternalAccountClient; + const client = await auth.getClient(); await client.getAccessToken(); - return client as unknown as accesscontextmanager_v1.Options['auth']; + return client as accesscontextmanager_v1.Options['auth']; } async getAuthenticatedServiceClient(): Promise<