From a51b05267231fb1770d6fc727bc276475c21d27f Mon Sep 17 00:00:00 2001 From: Jian Zhang Date: Fri, 17 Apr 2020 15:41:33 -0700 Subject: [PATCH] chore: remove a dead if branch (#986) --- packages/runtime-core/src/apiWatch.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/runtime-core/src/apiWatch.ts b/packages/runtime-core/src/apiWatch.ts index 1c02c115..c1802e48 100644 --- a/packages/runtime-core/src/apiWatch.ts +++ b/packages/runtime-core/src/apiWatch.ts @@ -288,9 +288,6 @@ function traverse(value: unknown, seen: Set = new Set()) { if (!isObject(value) || seen.has(value)) { return value } - if (seen.has(value)) { - return - } seen.add(value) if (isArray(value)) { for (let i = 0; i < value.length; i++) {