We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a13c627 commit 04a47deCopy full SHA for 04a47de
packages/ember-template-compiler/lib/plugins/utils.ts
@@ -12,16 +12,12 @@ export function isStringLiteral(node: AST.Expression): node is AST.StringLiteral
12
return node.type === 'StringLiteral';
13
}
14
15
-function getLocalName(node: string | AST.VarHead) {
16
- if (typeof node === 'string') return node;
17
-
18
- if (node.type === 'VarHead') {
+function getLocalName(node: string | AST.VarHead): string {
+ if (typeof node === 'string') {
+ return node;
+ } else {
19
return node.original;
20
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;
25
26
27
export function trackLocals() {
0 commit comments