Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Jan 17, 2025
1 parent 3af8289 commit 7086c76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/reactivity/src/system.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
// Ported from https://github.com/stackblitz/alien-signals/blob/v1.0.0/src/system.ts
import type { ComputedRefImpl as Computed } from './computed.js'
import type { ReactiveEffect as Effect } from './effect.js'
Expand All @@ -22,6 +21,7 @@ export interface Link {
nextDep: Link | undefined
}

// @lint-ignore
export const enum SubscriberFlags {
Computed = 1 << 0,
Effect = 1 << 1,
Expand Down Expand Up @@ -290,7 +290,7 @@ function checkDirty(link: Link): boolean {
(depFlags & (SubscriberFlags.Computed | SubscriberFlags.Dirty)) ===
(SubscriberFlags.Computed | SubscriberFlags.Dirty)
) {
if ((dep as Computed).update()) {
if (dep.update()) {
const subs = dep.subs!
if (subs.nextSub !== undefined) {
shallowPropagate(subs)
Expand Down

0 comments on commit 7086c76

Please sign in to comment.