chore: remove a dead if branch (#986)
This commit is contained in:
parent
ff5606dad2
commit
a51b052672
@ -288,9 +288,6 @@ function traverse(value: unknown, seen: Set<unknown> = new Set()) {
|
|||||||
if (!isObject(value) || seen.has(value)) {
|
if (!isObject(value) || seen.has(value)) {
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
if (seen.has(value)) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
seen.add(value)
|
seen.add(value)
|
||||||
if (isArray(value)) {
|
if (isArray(value)) {
|
||||||
for (let i = 0; i < value.length; i++) {
|
for (let i = 0; i < value.length; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user