Skip to content

Commit 850cffb

Browse files
committed
use return
1 parent d475ded commit 850cffb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/rules/oas3/no-invalid-tag-parents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const NoInvalidTagParents: Oas3Rule = () => {
3131
message: `Circular reference detected in tag parent hierarchy for tag '${tag.name}'.`,
3232
location: location.child('parent'),
3333
});
34-
break;
34+
return;
3535
}
3636
visited.add(currentParent);
3737
currentParent = tags.find((t) => t.name === currentParent)?.parent;

0 commit comments

Comments
 (0)