Skip to content

Commit

Permalink
fixing non null assertion (#2195)
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-ayoub-segment authored Jul 18, 2024
1 parent 93bbc3e commit c9ecf66
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export class S3CSVClient {
}

async assumeRole(): Promise<Credentials> {
const intermediaryARN = process.env.AMAZON_S3_ACTIONS_ROLE_ADDRESS!
const intermediaryExternalId = process.env.AMAZON_S3_ACTIONS_EXTERNAL_ID!
const intermediaryARN = process.env.AMAZON_S3_ACTIONS_ROLE_ADDRESS as string
const intermediaryExternalId = process.env.AMAZON_S3_ACTIONS_EXTERNAL_ID as string

const intermediaryCreds = await this.getSTSCredentials(intermediaryARN, intermediaryExternalId)
return this.getSTSCredentials(this.roleArn, this.externalId, intermediaryCreds)
Expand Down

0 comments on commit c9ecf66

Please sign in to comment.