From a35e9d7411e91ab9ef570c2a8d09ee3f312c6a3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Pallar=C3=A9s?= Date: Thu, 4 Sep 2025 09:43:54 +0200 Subject: [PATCH] refactor: unnecessary promise handling --- src/utils/configure-aws.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/utils/configure-aws.ts b/src/utils/configure-aws.ts index f12b135..e51671c 100644 --- a/src/utils/configure-aws.ts +++ b/src/utils/configure-aws.ts @@ -292,10 +292,9 @@ export async function configureAwsProfiles(options: { let configModified: boolean | undefined; let credentialsModified: boolean | undefined; - const [configNeedsOverride, credentialsNeedsOverride] = await Promise.all([ - checkIfConfigNeedsOverride(configSection), - checkIfCredentialsNeedsOverride(credentialsSection), - ]); + const configNeedsOverride = checkIfConfigNeedsOverride(configSection); + const credentialsNeedsOverride = + checkIfCredentialsNeedsOverride(credentialsSection); // means sections exist, but we need to check what's inside if (credentialsSection && configSection) {