We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e1e8ad commit ebc92c2Copy full SHA for ebc92c2
1 file changed
packages/angular/cli/commands/new-impl.ts
@@ -17,11 +17,7 @@ export class NewCommand extends SchematicCommand<NewCommandSchema> {
17
schematicName = 'ng-new';
18
19
async initialize(options: NewCommandSchema & Arguments) {
20
- if (options.collection) {
21
- this.collectionName = options.collection;
22
- } else {
23
- this.collectionName = await this.parseCollectionName(options);
24
- }
+ this.collectionName = options.collection || await this.getDefaultSchematicCollection();
25
26
return super.initialize(options);
27
}
@@ -43,7 +39,4 @@ export class NewCommand extends SchematicCommand<NewCommandSchema> {
43
39
});
44
40
45
41
46
- private async parseCollectionName(options: any): Promise<string> {
47
- return options.collection || this.getDefaultSchematicCollection();
48
49
42
0 commit comments