@@ -136,29 +136,25 @@ export abstract class FileSystemEngineHostBase implements
136
136
}
137
137
138
138
const collectionPath = dirname ( collection . path ) ;
139
- let partialDesc : Partial < FileSystemSchematicDesc > | null = collection . schematics [ name ] ;
139
+ const partialDesc : Partial < FileSystemSchematicDesc > | null = collection . schematics [ name ] ;
140
140
if ( ! partialDesc ) {
141
141
throw new UnknownSchematicException ( name , collection ) ;
142
142
}
143
143
144
144
if ( partialDesc . extends ) {
145
145
const index = partialDesc . extends . indexOf ( ':' ) ;
146
146
const collectionName = index !== - 1 ? partialDesc . extends . substr ( 0 , index ) : null ;
147
- const schematicName = index ! == - 1 ?
147
+ const schematicName = index = == - 1 ?
148
148
partialDesc . extends : partialDesc . extends . substr ( index + 1 ) ;
149
149
150
150
if ( collectionName !== null ) {
151
- // const extendCollection = engine.createCollection(collectionName);
152
151
const extendCollection = this . createCollectionDescription ( collectionName ) ;
153
- partialDesc = this . createSchematicDescription ( schematicName , extendCollection ) ;
152
+
153
+ return this . createSchematicDescription ( schematicName , extendCollection ) ;
154
154
} else {
155
- partialDesc = this . createSchematicDescription ( schematicName , collection ) ;
155
+ return this . createSchematicDescription ( schematicName , collection ) ;
156
156
}
157
157
}
158
- if ( ! partialDesc ) {
159
- throw new UnknownSchematicException ( name , collection ) ;
160
- }
161
-
162
158
// Use any on this ref as we don't have the OptionT here, but we don't need it (we only need
163
159
// the path).
164
160
if ( ! partialDesc . factory ) {
0 commit comments