]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(types): remove unnecessary assertions (#4168)
author王嘉欣 <1136843910@qq.com>
Wed, 21 Jul 2021 19:55:31 +0000 (03:55 +0800)
committerGitHub <noreply@github.com>
Wed, 21 Jul 2021 19:55:31 +0000 (15:55 -0400)
packages/runtime-core/src/scheduler.ts

index b917a151ccaf11dcf5c13152a4b0ad5898effe67..333125d578ddc5f478c6aa65e8d3d509250ed955 100644 (file)
@@ -130,7 +130,7 @@ function queueCb(
       !activeQueue ||
       !activeQueue.includes(
         cb,
-        (cb as SchedulerJob).allowRecurse ? index + 1 : index
+        cb.allowRecurse ? index + 1 : index
       )
     ) {
       pendingQueue.push(cb)
@@ -221,7 +221,7 @@ export function flushPostFlushCbs(seen?: CountMap) {
 }
 
 const getId = (job: SchedulerJob): number =>
-  job.id == null ? Infinity : job.id!
+  job.id == null ? Infinity : job.id
 
 function flushJobs(seen?: CountMap) {
   isFlushPending = false