minor: use const

This commit is contained in:
Evan You 2017-01-12 21:14:58 -05:00
parent ab0a2259e0
commit f4f3a01530

View File

@ -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 {