File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/schematics/angular/utility Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ export function addSymbolToNgModuleMetadata(
411
411
return [ ] ;
412
412
}
413
413
414
- let expresssion : ts . Expression | ts . ArrayLiteralExpression ;
414
+ let expression : ts . Expression | ts . ArrayLiteralExpression ;
415
415
const assignmentInit = assignment . initializer ;
416
416
const elements = assignmentInit . elements ;
417
417
@@ -421,20 +421,20 @@ export function addSymbolToNgModuleMetadata(
421
421
return [ ] ;
422
422
}
423
423
424
- expresssion = elements [ elements . length - 1 ] ;
424
+ expression = elements [ elements . length - 1 ] ;
425
425
} else {
426
- expresssion = assignmentInit ;
426
+ expression = assignmentInit ;
427
427
}
428
428
429
429
let toInsert : string ;
430
- let position = expresssion . getEnd ( ) ;
431
- if ( ts . isArrayLiteralExpression ( expresssion ) ) {
430
+ let position = expression . getEnd ( ) ;
431
+ if ( ts . isArrayLiteralExpression ( expression ) ) {
432
432
// We found the field but it's empty. Insert it just before the `]`.
433
433
position -- ;
434
434
toInsert = `\n${ tags . indentBy ( 4 ) `${ symbolName } ` } \n ` ;
435
435
} else {
436
436
// Get the indentation of the last element, if any.
437
- const text = expresssion . getFullText ( source ) ;
437
+ const text = expression . getFullText ( source ) ;
438
438
const matches = text . match ( / ^ ( \r ? \n ) ( \s * ) / ) ;
439
439
if ( matches ) {
440
440
toInsert = `,${ matches [ 1 ] } ${ tags . indentBy ( matches [ 2 ] . length ) `${ symbolName } ` } ` ;
You can’t perform that action at this time.
0 commit comments