Skip to content

Commit

Permalink
fix: unnecessary ?
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson committed Dec 2, 2024
1 parent fc9c18f commit bad5068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@lwc/ssr-compiler/src/compile-template/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bad5068

Please sign in to comment.