mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-04 21:17:55 +08:00
minor: use const
This commit is contained in:
parent
ab0a2259e0
commit
f4f3a01530
@ -126,7 +126,7 @@ function genIfConditions (conditions: ASTIfConditions): string {
|
||||
return '_e()'
|
||||
}
|
||||
|
||||
var condition = conditions.shift()
|
||||
const condition = conditions.shift()
|
||||
if (condition.exp) {
|
||||
return `(${condition.exp})?${genTernaryExp(condition.block)}:${genIfConditions(conditions)}`
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user