Skip to content

Commit 04a47de

Browse files
committedMar 29, 2024
Remove outdated comment
1 parent a13c627 commit 04a47de

File tree

1 file changed

+4
-8
lines changed
  • packages/ember-template-compiler/lib/plugins

1 file changed

+4
-8
lines changed
 

‎packages/ember-template-compiler/lib/plugins/utils.ts

+4-8
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,12 @@ export function isStringLiteral(node: AST.Expression): node is AST.StringLiteral
1212
return node.type === 'StringLiteral';
1313
}
1414

15-
function getLocalName(node: string | AST.VarHead) {
16-
if (typeof node === 'string') return node;
17-
18-
if (node.type === 'VarHead') {
15+
function getLocalName(node: string | AST.VarHead): string {
16+
if (typeof node === 'string') {
17+
return node;
18+
} else {
1919
return node.original;
2020
}
21-
22-
// surely this is wrong? (does it ever occur tho?)
23-
// the type of params is `| Expression`, which isn't possible for block params
24-
return node;
2521
}
2622

2723
export function trackLocals() {

0 commit comments

Comments
 (0)