Skip to content

Commit 36ae23d

Browse files
authored
chore(types): remove unnecessary assertions (#4168)
1 parent 9c931d8 commit 36ae23d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-core/src/scheduler.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function queueCb(
130130
!activeQueue ||
131131
!activeQueue.includes(
132132
cb,
133-
(cb as SchedulerJob).allowRecurse ? index + 1 : index
133+
cb.allowRecurse ? index + 1 : index
134134
)
135135
) {
136136
pendingQueue.push(cb)
@@ -221,7 +221,7 @@ export function flushPostFlushCbs(seen?: CountMap) {
221221
}
222222

223223
const getId = (job: SchedulerJob): number =>
224-
job.id == null ? Infinity : job.id!
224+
job.id == null ? Infinity : job.id
225225

226226
function flushJobs(seen?: CountMap) {
227227
isFlushPending = false

0 commit comments

Comments
 (0)