Skip to content

Commit

Permalink
fix: Remove useless const initiation
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlaa committed May 14, 2024
1 parent 3e50d8a commit a6f9212
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/migrations/migrateSituation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit a6f9212

Please sign in to comment.