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 May 26, 2023
1 parent f163d05 commit f9b4585
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/schematics/custom.collection.ts
Original file line number Diff line number Diff line change
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 f9b4585

Please sign in to comment.