Skip to content

Commit

Permalink
Update lib/schematics/custom.collection.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Kamil Mysliwiec <mail@kamilmysliwiec.com>
  • Loading branch information
xdissent and kamilmysliwiec committed Dec 19, 2023
1 parent 868e4f0 commit a063bbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/schematics/custom.collection.ts
Expand Up @@ -21,7 +21,9 @@ export class CustomCollection extends AbstractCollection {
for (const collectionDesc of collectionDescs) {
const schematicsDescs = Object.entries(collectionDesc.schematics);
for (const [name, { description, aliases = [] }] of schematicsDescs) {
if (usedNames.has(name)) continue;
if (usedNames.has(name)) {
continue;
}
usedNames.add(name);
const alias = aliases.find((a) => !usedNames.has(a)) ?? name;
for (const alias of aliases) {
Expand Down

0 comments on commit a063bbd

Please sign in to comment.