Skip to content

Commit

Permalink
fix(ast): remove redundant cycle detection (#3411)
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n committed Nov 19, 2023
1 parent 045f8a3 commit a8106de
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/apidom-ast/src/traversal/visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,6 @@ export const visit = (
path.push(key);
}

if (ancestors.includes(node)) {
continue;
}

let result;
if (!Array.isArray(node)) {
if (!nodePredicate(node)) {
Expand Down

0 comments on commit a8106de

Please sign in to comment.