Skip to content

Commit

Permalink
chore: remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
pionxzh committed Feb 18, 2024
1 parent 23cf3e4 commit 2458d5f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/unminify/src/transformations/smart-rename.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,7 @@ function handlePropertyRename(j: JSCodeshift, objectPattern: ObjectPattern, scop
newName = generateName(`_${newName}`, scope)
}

// if (isDeclared(scope, newName)) return

renameIdentifier(j, scope, value.name, newName)
scope.markAsStale()
property.shorthand = newName === value.name
})
}
Expand Down

0 comments on commit 2458d5f

Please sign in to comment.