Skip to content

Commit 58f531f

Browse files
clarkdohefeng
authored and
hefeng
committed
refactor: remove unnecessary condition (vuejs#6716)
1 parent 6c86f4a commit 58f531f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platforms/web/runtime/components/transition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export default {
165165
) {
166166
// replace old child transition data with fresh one
167167
// important for dynamic transitions!
168-
const oldData: Object = oldChild && (oldChild.data.transition = extend({}, data))
168+
const oldData: Object = oldChild.data.transition = extend({}, data)
169169
// handle transition mode
170170
if (mode === 'out-in') {
171171
// return placeholder node and queue update when leave finishes

0 commit comments

Comments
 (0)