Skip to content

Commit 95e4e70

Browse files
clarkdoyyx990803
authored andcommitted
refactor: remove ternary operator because key is always true (#6576)
Signed-off-by: Clark Du <[email protected]>
1 parent 3f42562 commit 95e4e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/compiler/codegen/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function genOnce (el: ASTElement, state: CodegenState): string {
113113
)
114114
return genElement(el, state)
115115
}
116-
return `_o(${genElement(el, state)},${state.onceId++}${key ? `,${key}` : ``})`
116+
return `_o(${genElement(el, state)},${state.onceId++},${key})`
117117
} else {
118118
return genStatic(el, state)
119119
}

0 commit comments

Comments
 (0)