Skip to content

Commit

Permalink
chore: change Promise.resolve to async fn
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe committed Oct 8, 2024
1 parent ff5a795 commit 8cfb10a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const isStaticCredsProfile = (arg: any): arg is StaticCredsProfile =>
/**
* @internal
*/
export const resolveStaticCredentials = (
export const resolveStaticCredentials = async (
profile: StaticCredsProfile,
options?: FromIniInit
): Promise<AwsCredentialIdentity> => {
Expand All @@ -42,5 +42,5 @@ export const resolveStaticCredentials = (
...(profile.aws_account_id && { accountId: profile.aws_account_id }),
};

return Promise.resolve(setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n"));
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
};

0 comments on commit 8cfb10a

Please sign in to comment.