fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: combine skip conditionals into single statement for better readability

Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>

+1 -9
+1 -9
packages/shared/src/openApi/shared/transforms/schemas.ts
··· 56 56 for (const oldName of Object.keys(schemasObj)) { 57 57 const newName = applyNaming(oldName, namingConfig); 58 58 59 - if (newName === oldName) { 60 - continue; 61 - } 62 - 63 - if (newName in schemasObj) { 64 - continue; 65 - } 66 - 67 - if (newNames.has(newName)) { 59 + if (newName === oldName || newName in schemasObj || newNames.has(newName)) { 68 60 continue; 69 61 } 70 62