Skip to content

Commit

Permalink
refactor: avoid unnecessary type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Hweinstock committed Feb 3, 2025
1 parent d180291 commit c358a2a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import { CredentialsData, SectionName, SharedCredentialsKeys } from '../credenti
import { SsoProfile, hasScopes, scopesSsoAccountAccess } from '../connection'
import { builderIdStartUrl } from '../sso/constants'
import { ToolkitError } from '../../shared'
import { STS } from 'aws-sdk'

const credentialSources = {
ECS_CONTAINER: 'EcsContainer',
Expand Down Expand Up @@ -414,7 +413,7 @@ export class SharedCredentialsProvider implements CredentialsProvider {
secretAccessKey: sourceProfile.aws_secret_access_key!,
})
// Prompt for MFA Token if needed.
const assumeRoleReq: STS.AssumeRoleRequest = profile.mfa_serial
const assumeRoleReq = profile.mfa_serial
? {
RoleArn: profile.role_arn,
RoleSessionName: 'AssumeRoleSession',
Expand Down

0 comments on commit c358a2a

Please sign in to comment.