From 84e3f7727dc1de31484704c7c06d51ff5392a34a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Exbrayat?= Date: Thu, 29 Sep 2022 15:39:22 +0200 Subject: [PATCH] fix(@schematics/angular): remove empty lines The recet removal of enableProdMode in 283b564d1de985f0af8c2fcb6192801a90baacda introduced unnecessary empty lines in main.ts --- .../angular/application/files/src/main.ts.template | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/schematics/angular/application/files/src/main.ts.template b/packages/schematics/angular/application/files/src/main.ts.template index 0a0fb9fb0927..e830262f190f 100644 --- a/packages/schematics/angular/application/files/src/main.ts.template +++ b/packages/schematics/angular/application/files/src/main.ts.template @@ -1,5 +1,5 @@ -<% if(!!viewEncapsulation) { %>import { ViewEncapsulation } from '@angular/core';<% }%> -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +<% if(!!viewEncapsulation) { %>import { ViewEncapsulation } from '@angular/core'; +<% }%>import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; @@ -7,8 +7,7 @@ import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule, { defaultEncapsulation: ViewEncapsulation.<%= viewEncapsulation %> }) - .catch(err => console.error(err)); -<% } else { %> + .catch(err => console.error(err));<% } else { %> platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.error(err)); -<% } %> +<% } %> \ No newline at end of file