From 46667e850c447b3e4005470c1b1c7b01068234d5 Mon Sep 17 00:00:00 2001 From: gonzaloriestra <14979109+gonzaloriestra@users.noreply.github.com> Date: Sun, 16 Aug 2026 00:35:32 +0000 Subject: [PATCH] [Refactor] Simplify environment extraction in loadEnvironment --- packages/cli-kit/src/public/node/environments.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/cli-kit/src/public/node/environments.ts b/packages/cli-kit/src/public/node/environments.ts index 72d1d69be4b..d726bf50b24 100644 --- a/packages/cli-kit/src/public/node/environments.ts +++ b/packages/cli-kit/src/public/node/environments.ts @@ -39,8 +39,7 @@ export async function loadEnvironment( return undefined } const file = await TomlFile.read(filePath) - const environmentsJson = file.content as Environments - const environments = environmentsJson.environments + const environments = (file.content as Environments).environments if (!environments) { renderWarningIfNeeded( {