We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c78c2ca commit f5b1621Copy full SHA for f5b1621
packages/openapi-ts/src/plugins/@hey-api/sdk/operation.ts
@@ -130,9 +130,11 @@ export const operationClasses = ({
130
if (className) {
131
// If root class is already within classCandidates or the same as className
132
// do not add it again as this will cause a recursion issue.
133
- if (classCandidates.indexOf(rootClass) >= 0 || rootClass === className)
+ if (classCandidates.includes(rootClass) || rootClass === className) {
134
path = [...classCandidates, className];
135
- else path = [rootClass, ...classCandidates, className];
+ } else {
136
+ path = [rootClass, ...classCandidates, className];
137
+ }
138
}
139
140
classNames.set(rootClass, {
0 commit comments