Skip to content

Commit

Permalink
removed isProxy check on has calls
Browse files Browse the repository at this point in the history
  • Loading branch information
overthemike committed Oct 15, 2024
1 parent 849d33f commit b0e4b3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vanilla/utils/proxyMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function proxyMap<K, V>(entries?: Iterable<[K, V]> | undefined | null) {
const map = getMapForThis(this)
const k = maybeProxify(key)
const exists = map.has(k)
if (!exists && !isProxy(this)) {
if (!exists) {
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
this.index
}
Expand Down
2 changes: 1 addition & 1 deletion src/vanilla/utils/proxySet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function proxySet<T>(initialValues?: Iterable<T> | null) {
const map = getMapForThis(this)
const value = maybeProxify(v)
const exists = map.has(value)
if (!exists && !isProxy(this)) {
if (!exists) {
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
this.index
}
Expand Down

0 comments on commit b0e4b3e

Please sign in to comment.