Skip to content

Commit

Permalink
removed unneeded variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
overthemike committed Oct 24, 2024
1 parent 2d3714c commit dd50d04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/vanilla/utils/proxyMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,9 @@ export function proxyMap<K, V>(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)) {
Expand Down
3 changes: 1 addition & 2 deletions src/vanilla/utils/proxySet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,9 @@ export function proxySet<T>(initialValues?: Iterable<T> | 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)) {
Expand Down

0 comments on commit dd50d04

Please sign in to comment.