Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bradlc committed Jul 25, 2022
1 parent 11c6cf0 commit 287d55b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/index.js
Expand Up @@ -250,10 +250,13 @@ function transformGlimmer(ast, { env }) {
return
}

let siblings = parent?.type === 'ConcatStatement' ? {
prev: parent.parts[index - 1],
next: parent.parts[index + 1],
} : null
let siblings =
parent?.type === 'ConcatStatement'
? {
prev: parent.parts[index - 1],
next: parent.parts[index + 1],
}
: null

node.chars = sortClasses(node.chars, {
env,
Expand Down Expand Up @@ -498,11 +501,11 @@ function visit(ast, callbackMap) {
if (Array.isArray(child)) {
for (let j = 0; j < child.length; j++) {
if (child[j] !== null) {
_visit(child[j], node, keys[i], j, {...meta})
_visit(child[j], node, keys[i], j, { ...meta })
}
}
} else if (typeof child?.type === 'string') {
_visit(child, node, keys[i], i, {...meta})
_visit(child, node, keys[i], i, { ...meta })
}
}
}
Expand Down

0 comments on commit 287d55b

Please sign in to comment.