chore: remove unnecessary casting

This commit is contained in:
Evan You 2021-06-26 21:35:25 -04:00
parent f680074468
commit fddef8bb74

View File

@ -175,8 +175,8 @@ function doWatch(
let isMultiSource = false let isMultiSource = false
if (isRef(source)) { if (isRef(source)) {
getter = () => (source as Ref).value getter = () => source.value
forceTrigger = !!(source as Ref)._shallow forceTrigger = !!source._shallow
} else if (isReactive(source)) { } else if (isReactive(source)) {
getter = () => source getter = () => source
deep = true deep = true