Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] committed Dec 30, 2023
1 parent 5b5302e commit 3cf7898
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/runtime-core/__tests__/apiWatch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ describe('api: watch', () => {
it('directly watching reactive object with explicit deep: false', async () => {
const src = reactive({
state: {
count: 0
}
count: 0,
},
})
let dummy
watch(
Expand All @@ -171,8 +171,8 @@ describe('api: watch', () => {
dummy = state?.count
},
{
deep: false
}
deep: false,
},
)

// nested should not trigger
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime-core/src/apiWatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ export function traverse(
value: unknown,
depth?: number,
currentDepth = 0,
seen?: Set<unknown>
seen?: Set<unknown>,
) {
if (!isObject(value) || (value as any)[ReactiveFlags.SKIP]) {
return value
Expand Down

0 comments on commit 3cf7898

Please sign in to comment.