From fcf6a5e397cb50516d629b95741ef63cfea5eca7 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 20 Aug 2025 02:51:17 +0000 Subject: [PATCH] chore: Update dist --- dist/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index cded130..5cdcf96 100644 --- a/dist/index.js +++ b/dist/index.js @@ -207,7 +207,11 @@ async function assumeRole(params) { PolicyArns: managedSessionPolicies?.length ? managedSessionPolicies : undefined, }; const keys = Object.keys(commonAssumeRoleParams); - keys.forEach((k) => commonAssumeRoleParams[k] === undefined && delete commonAssumeRoleParams[k]); + keys.forEach((k) => { + if (commonAssumeRoleParams[k] === undefined) { + delete commonAssumeRoleParams[k]; + } + }); // Instantiate STS client const stsClient = credentialsClient.stsClient; // Assume role using one of three methods