Skip to content

Commit 11bd8db

Browse files
authored
chore(types): remove unnecessary type assertions (#7032)
1 parent da2ced1 commit 11bd8db

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/runtime-core/src/apiWatch.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ export function watchPostEffect(
9393
return doWatch(
9494
effect,
9595
null,
96-
(__DEV__
97-
? { ...options, flush: 'post' }
98-
: { flush: 'post' }) as WatchOptionsBase
96+
__DEV__ ? { ...options, flush: 'post' } : { flush: 'post' }
9997
)
10098
}
10199

@@ -106,9 +104,7 @@ export function watchSyncEffect(
106104
return doWatch(
107105
effect,
108106
null,
109-
(__DEV__
110-
? { ...options, flush: 'sync' }
111-
: { flush: 'sync' }) as WatchOptionsBase
107+
__DEV__ ? { ...options, flush: 'sync' } : { flush: 'sync' }
112108
)
113109
}
114110

0 commit comments

Comments
 (0)