Skip to content

Commit

Permalink
avoid variable shadowing, make naming consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed May 7, 2024
1 parent 5d2501a commit c4bed07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions migrations/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func (m *StorageMigration) MigrateNestedValue(
fieldName,
)

migratedValue := m.MigrateNestedValue(
newValue := m.MigrateNestedValue(
storageKey,
storageMapKey,
existingValue,
Expand All @@ -312,7 +312,7 @@ func (m *StorageMigration) MigrateNestedValue(
allowMutation,
)

if migratedValue == nil {
if newValue == nil {
continue
}

Expand All @@ -328,7 +328,7 @@ func (m *StorageMigration) MigrateNestedValue(
inter,
emptyLocationRange,
fieldName,
migratedValue,
newValue,
)
}

Expand Down

0 comments on commit c4bed07

Please sign in to comment.