Skip to content

Commit c358a2a

Browse files
committed
refactor: avoid unnecessary type annotation
1 parent d180291 commit c358a2a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/src/auth/providers/sharedCredentialsProvider.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import { CredentialsData, SectionName, SharedCredentialsKeys } from '../credenti
3232
import { SsoProfile, hasScopes, scopesSsoAccountAccess } from '../connection'
3333
import { builderIdStartUrl } from '../sso/constants'
3434
import { ToolkitError } from '../../shared'
35-
import { STS } from 'aws-sdk'
3635

3736
const credentialSources = {
3837
ECS_CONTAINER: 'EcsContainer',
@@ -414,7 +413,7 @@ export class SharedCredentialsProvider implements CredentialsProvider {
414413
secretAccessKey: sourceProfile.aws_secret_access_key!,
415414
})
416415
// Prompt for MFA Token if needed.
417-
const assumeRoleReq: STS.AssumeRoleRequest = profile.mfa_serial
416+
const assumeRoleReq = profile.mfa_serial
418417
? {
419418
RoleArn: profile.role_arn,
420419
RoleSessionName: 'AssumeRoleSession',

0 commit comments

Comments
 (0)