From 90f33dd11d759de8f5106669fc7d320c72ea289c Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Fri, 1 Nov 2019 16:55:09 +0000 Subject: [PATCH] refactor(ngcc): remove unnecessary ! operator (#33533) PR Close #33533 --- .../compiler-cli/ngcc/src/rendering/esm_rendering_formatter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.ts b/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.ts index 9c25067523236..b78e5ea14136d 100644 --- a/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.ts +++ b/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.ts @@ -96,7 +96,7 @@ export class EsmRenderingFormatter implements RenderingFormatter { if (!classSymbol) { throw new Error(`Compiled class does not have a valid symbol: ${compiledClass.name}`); } - const insertionPoint = classSymbol.declaration.valueDeclaration !.getEnd(); + const insertionPoint = classSymbol.declaration.valueDeclaration.getEnd(); output.appendLeft(insertionPoint, '\n' + definitions); }