Skip to content

Commit

Permalink
chore: minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Dec 20, 2024
1 parent fb92346 commit 6561522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-vapor/src/generators/expression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ function processRepeatedVariables(
for (const [name, exps] of variableToExpMap) {
if (seenVariable[name] > 1 && exps.size > 0) {
const isIdentifier = seenIdentifier.has(name)
const varName = genVarName(name)
const varName = isIdentifier ? name : genVarName(name)
if (!declarations.some(d => d.name === varName)) {
declarations.push({
name: varName,
Expand Down

0 comments on commit 6561522

Please sign in to comment.