Skip to content

Commit

Permalink
chore(types): remove unnecessary type assertions (vuejs#7032)
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz authored and chrislone committed Feb 4, 2023
1 parent b4735de commit 418d1b2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/runtime-core/src/apiWatch.ts
Expand Up @@ -93,9 +93,7 @@ export function watchPostEffect(
return doWatch(
effect,
null,
(__DEV__
? { ...options, flush: 'post' }
: { flush: 'post' }) as WatchOptionsBase
__DEV__ ? { ...options, flush: 'post' } : { flush: 'post' }
)
}

Expand All @@ -106,9 +104,7 @@ export function watchSyncEffect(
return doWatch(
effect,
null,
(__DEV__
? { ...options, flush: 'sync' }
: { flush: 'sync' }) as WatchOptionsBase
__DEV__ ? { ...options, flush: 'sync' } : { flush: 'sync' }
)
}

Expand Down

0 comments on commit 418d1b2

Please sign in to comment.