Skip to content

Commit

Permalink
chore: remove unnecessary casting
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 27, 2021
1 parent f680074 commit fddef8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-core/src/apiWatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ function doWatch(
let isMultiSource = false

if (isRef(source)) {
getter = () => (source as Ref).value
forceTrigger = !!(source as Ref)._shallow
getter = () => source.value
forceTrigger = !!source._shallow
} else if (isReactive(source)) {
getter = () => source
deep = true
Expand Down

0 comments on commit fddef8b

Please sign in to comment.