Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 30, 2024
1 parent 1d8727e commit 8708a7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/reactivity/src/dep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
2 changes: 1 addition & 1 deletion packages/runtime-core/src/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8708a7f

Please sign in to comment.