diff --git a/src/vanilla/utils/proxyMap.ts b/src/vanilla/utils/proxyMap.ts index 0964f651..bd1ee5d2 100644 --- a/src/vanilla/utils/proxyMap.ts +++ b/src/vanilla/utils/proxyMap.ts @@ -87,10 +87,9 @@ export function proxyMap(entries?: Iterable<[K, V]> | undefined | null) { }, has(key: K) { const map = getMapForThis(this) - const exists = map.has(key) // eslint-disable-next-line @typescript-eslint/no-unused-expressions this.data.length // touch property for tracking - return exists + return map.has(key) }, set(key: K, value: V) { if (!isProxy(this)) { diff --git a/src/vanilla/utils/proxySet.ts b/src/vanilla/utils/proxySet.ts index 298ff81d..88f6af09 100644 --- a/src/vanilla/utils/proxySet.ts +++ b/src/vanilla/utils/proxySet.ts @@ -72,10 +72,9 @@ export function proxySet(initialValues?: Iterable | null) { has(value: T) { const map = getMapForThis(this) const v = maybeProxify(value) - const exists = map.has(v) // eslint-disable-next-line @typescript-eslint/no-unused-expressions this.data.length // touch property for tracking - return exists + return map.has(v) }, add(value: T) { if (!isProxy(this)) {