Skip to content

Commit d13a866

Browse files
InSantoshMahtoalan-agius4
authored andcommitted
fix(@schematics/angular): working with formatting
1 parent 052b8fa commit d13a866

File tree

1 file changed

+4
-4
lines changed
  • packages/schematics/angular/web-worker

1 file changed

+4
-4
lines changed

packages/schematics/angular/web-worker/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ function addSnippet(options: WebWorkerOptions): Rule {
105105
export 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) {

0 commit comments

Comments
 (0)