File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/schematics/angular/web-worker Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ function addSnippet(options: WebWorkerOptions): Rule {
105105export default function ( options : WebWorkerOptions ) : Rule {
106106 return async ( host : Tree ) => {
107107 const workspace = await getWorkspace ( host ) ;
108+
108109 if ( ! options . project ) {
109110 throw new SchematicsException ( 'Option "project" is required.' ) ;
110111 }
@@ -124,8 +125,7 @@ export default function (options: WebWorkerOptions): Rule {
124125 if ( ! projectTarget ) {
125126 throw new Error ( `Target is not defined for this project.` ) ;
126127 }
127- const projectTargetOptions = ( ( projectTarget . options ||
128- { } ) as unknown ) as BrowserBuilderOptions ;
128+ const projectTargetOptions = ( projectTarget . options || { } ) as unknown as BrowserBuilderOptions ;
129129
130130 if ( options . path === undefined ) {
131131 options . path = buildDefaultPath ( project ) ;
@@ -143,8 +143,8 @@ export default function (options: WebWorkerOptions): Rule {
143143
144144 const projectTestTarget = project . targets . get ( 'test' ) ;
145145 if ( projectTestTarget ) {
146- const projectTestTargetOptions = ( ( projectTestTarget . options ||
147- { } ) as unknown ) as BrowserBuilderOptions ;
146+ const projectTestTargetOptions = ( projectTestTarget . options ||
147+ { } ) as unknown as BrowserBuilderOptions ;
148148
149149 const needWebWorkerConfig = ! projectTestTargetOptions . webWorkerTsConfig ;
150150 if ( needWebWorkerConfig ) {
You can’t perform that action at this time.
0 commit comments