Skip to content

Commit 64f9d68

Browse files
clarkdoyyx990803
authored andcommitted
refactor: remove unnecessary condition (#6716)
1 parent 4fd2ce8 commit 64f9d68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/platforms/web/runtime/components/transition.js

+1-1
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)