chore: fix lint

This commit is contained in:
Evan You 2024-05-30 11:25:39 +08:00
parent 1d8727ec97
commit 8708a7f1ef
No known key found for this signature in database
GPG Key ID: B9D421896CA450FB
2 changed files with 2 additions and 1 deletions

View File

@ -329,5 +329,6 @@ export function trigger(
* Test only
*/
export function getDepFromReactive(object: any, key: string | number | symbol) {
// eslint-disable-next-line
return targetMap.get(object)?.get(key)
}

View File

@ -98,7 +98,7 @@ export function queueJob(job: SchedulerJob) {
} else if (
// fast path when the job id is larger than the tail
!(job.flags! & SchedulerJobFlags.PRE) &&
job.id >= (queue[queue.length - 1]?.id || 0)
job.id >= ((queue[queue.length - 1] && queue[queue.length - 1].id) || 0)
) {
queue.push(job)
} else {