From dd50d044bd8087b1859125917b34bc4fcef87d2a Mon Sep 17 00:00:00 2001 From: Michael Sweeney Date: Thu, 24 Oct 2024 05:12:58 -0700 Subject: [PATCH] removed unneeded variable assignment --- src/vanilla/utils/proxyMap.ts | 3 +-- src/vanilla/utils/proxySet.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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)) {