File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
packages/angular/cli/commands Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,7 @@ export class NewCommand extends SchematicCommand<NewCommandSchema> {
17
17
schematicName = 'ng-new' ;
18
18
19
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
- }
20
+ this . collectionName = options . collection || await this . getDefaultSchematicCollection ( ) ;
25
21
26
22
return super . initialize ( options ) ;
27
23
}
@@ -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
}
You can’t perform that action at this time.
0 commit comments