Skip to content

Commit

Permalink
Update src/rulesets/oas/functions/oasUnusedComponent.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Rożek <jakub@rozek.tech>
  • Loading branch information
Mike Kistler and P0lip authored Jan 19, 2021
1 parent 1ea8aea commit 837543d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rulesets/oas/functions/oasUnusedComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const oasUnusedComponent: IFunction<{}> = function (
'callbacks',
];

componentTypes.forEach(type => {
for (const type of componentTypes) {
const resultsForType = this.functions.unreferencedReusableObject.call(
this,
targetVal.components[type],
Expand All @@ -35,7 +35,7 @@ export const oasUnusedComponent: IFunction<{}> = function (
if (resultsForType !== void 0 && Array.isArray(resultsForType)) {
results.push(...resultsForType);
}
});
}

return results;
};
Expand Down

0 comments on commit 837543d

Please sign in to comment.