From bad506854eb4580b5dbaefa65e39c967150bc5f5 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Mon, 2 Dec 2024 15:30:21 -0800 Subject: [PATCH] fix: unnecessary ? --- packages/@lwc/ssr-compiler/src/compile-template/shared.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@lwc/ssr-compiler/src/compile-template/shared.ts b/packages/@lwc/ssr-compiler/src/compile-template/shared.ts index 80bf3c16df..8829052040 100644 --- a/packages/@lwc/ssr-compiler/src/compile-template/shared.ts +++ b/packages/@lwc/ssr-compiler/src/compile-template/shared.ts @@ -75,7 +75,7 @@ function getRootMemberExpression(node: EsMemberExpression): EsMemberExpression { function getRootIdentifier(node: EsMemberExpression): EsIdentifier { const rootMemberExpression = getRootMemberExpression(node); - if (is.identifier(rootMemberExpression?.object)) { + if (is.identifier(rootMemberExpression.object)) { return rootMemberExpression.object; } // Should be impossible to hit, at least until we implement complex template expressions