From a6f92126ff5528ca44be9b685b0baeb3e41956da Mon Sep 17 00:00:00 2001 From: Benjamin Arias Date: Tue, 14 May 2024 15:25:32 +0200 Subject: [PATCH] fix: Remove useless const initiation --- source/migrations/migrateSituation.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/migrations/migrateSituation.ts b/source/migrations/migrateSituation.ts index e794913..deff427 100644 --- a/source/migrations/migrateSituation.ts +++ b/source/migrations/migrateSituation.ts @@ -18,14 +18,12 @@ export function migrateSituation({ let foldedStepsMigrated = [...foldedSteps] Object.entries(situationMigrated).map(([ruleName, nodeValue]) => { - const situationUpdated = handleSpecialCases({ + situationMigrated = handleSpecialCases({ ruleName, nodeValue, situation: situationMigrated, }) - situationMigrated = situationUpdated - // We check if the non supported ruleName is a key to migrate. // Ex: "logement . chauffage . bois . type . bûche . consommation": "xxx" which is now ""logement . chauffage . bois . type . bûches . consommation": "xxx" if (Object.keys(migrationInstructions.keysToMigrate).includes(ruleName)) {