Skip to content

Commit

Permalink
Remove outdated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
chancancode committed Mar 29, 2024
1 parent a13c627 commit 04a47de
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/ember-template-compiler/lib/plugins/utils.ts
Expand Up @@ -12,16 +12,12 @@ export function isStringLiteral(node: AST.Expression): node is AST.StringLiteral
return node.type === 'StringLiteral';
}

function getLocalName(node: string | AST.VarHead) {
if (typeof node === 'string') return node;

if (node.type === 'VarHead') {
function getLocalName(node: string | AST.VarHead): string {
if (typeof node === 'string') {
return node;
} else {
return node.original;
}

// surely this is wrong? (does it ever occur tho?)
// the type of params is `| Expression`, which isn't possible for block params
return node;
}

export function trackLocals() {
Expand Down

0 comments on commit 04a47de

Please sign in to comment.