Skip to content

Commit ec904ad

Browse files
committed
refactor: simplify
1 parent 780fab8 commit ec904ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/pinia/src/store.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@ function mergeReactiveObjects<
9090

9191
// no need to go through symbols because they cannot be serialized anyway
9292
for (const key in patchToApply) {
93-
if (!Object.prototype.hasOwnProperty.call(patchToApply, key)) continue
93+
if (!patchToApply.hasOwnProperty(key)) continue
9494
const subPatch = patchToApply[key]
9595
const targetValue = target[key]
9696

9797
if (
9898
isPlainObject(targetValue) &&
9999
isPlainObject(subPatch) &&
100-
Object.prototype.hasOwnProperty.call(target, key) &&
100+
target.hasOwnProperty(key) &&
101101
!isRef(subPatch) &&
102102
!isReactive(subPatch)
103103
) {

0 commit comments

Comments
 (0)