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 {
105
105
export default function ( options : WebWorkerOptions ) : Rule {
106
106
return async ( host : Tree ) => {
107
107
const workspace = await getWorkspace ( host ) ;
108
+
108
109
if ( ! options . project ) {
109
110
throw new SchematicsException ( 'Option "project" is required.' ) ;
110
111
}
@@ -124,8 +125,7 @@ export default function (options: WebWorkerOptions): Rule {
124
125
if ( ! projectTarget ) {
125
126
throw new Error ( `Target is not defined for this project.` ) ;
126
127
}
127
- const projectTargetOptions = ( ( projectTarget . options ||
128
- { } ) as unknown ) as BrowserBuilderOptions ;
128
+ const projectTargetOptions = ( projectTarget . options || { } ) as unknown as BrowserBuilderOptions ;
129
129
130
130
if ( options . path === undefined ) {
131
131
options . path = buildDefaultPath ( project ) ;
@@ -143,8 +143,8 @@ export default function (options: WebWorkerOptions): Rule {
143
143
144
144
const projectTestTarget = project . targets . get ( 'test' ) ;
145
145
if ( projectTestTarget ) {
146
- const projectTestTargetOptions = ( ( projectTestTarget . options ||
147
- { } ) as unknown ) as BrowserBuilderOptions ;
146
+ const projectTestTargetOptions = ( projectTestTarget . options ||
147
+ { } ) as unknown as BrowserBuilderOptions ;
148
148
149
149
const needWebWorkerConfig = ! projectTestTargetOptions . webWorkerTsConfig ;
150
150
if ( needWebWorkerConfig ) {
You can’t perform that action at this time.
0 commit comments