From 0a4a62db51a0f5bcd7854e929d72de170304314a Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 27 Jan 2025 20:42:11 +0000 Subject: [PATCH] refactor: rename variable for clarity --- test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test.ts b/test.ts index d7db382..0c48ee9 100644 --- a/test.ts +++ b/test.ts @@ -198,13 +198,13 @@ export const runTerraformApply = async ( ): Promise => { const stateFile = `${dir}/${crypto.randomUUID()}.tfstate`; - const combinedEnv: Record = { + const childEnv: Record = { ...process.env, ...(customEnv ?? {}), }; for (const [key, value] of Object.entries(vars) as [string, JsonValue][]) { if (value !== null) { - combinedEnv[`TF_VAR_${key}`] = String(value); + childEnv[`TF_VAR_${key}`] = String(value); } } @@ -221,7 +221,7 @@ export const runTerraformApply = async ( ], { cwd: dir, - env: combinedEnv, + env: childEnv, stderr: "pipe", stdout: "pipe", },