chore: remove a dead if branch (#986)

This commit is contained in:
Jian Zhang 2020-04-17 15:41:33 -07:00 committed by GitHub
parent ff5606dad2
commit a51b052672
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -288,9 +288,6 @@ function traverse(value: unknown, seen: Set<unknown> = 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++) {