mirror of https://github.com/vuejs/core.git
chore: fix lint
This commit is contained in:
parent
1d8727ec97
commit
8708a7f1ef
|
@ -329,5 +329,6 @@ export function trigger(
|
||||||
* Test only
|
* Test only
|
||||||
*/
|
*/
|
||||||
export function getDepFromReactive(object: any, key: string | number | symbol) {
|
export function getDepFromReactive(object: any, key: string | number | symbol) {
|
||||||
|
// eslint-disable-next-line
|
||||||
return targetMap.get(object)?.get(key)
|
return targetMap.get(object)?.get(key)
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,7 @@ export function queueJob(job: SchedulerJob) {
|
||||||
} else if (
|
} else if (
|
||||||
// fast path when the job id is larger than the tail
|
// fast path when the job id is larger than the tail
|
||||||
!(job.flags! & SchedulerJobFlags.PRE) &&
|
!(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)
|
queue.push(job)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue