Skip to content

Commit 287d55b

Browse files
committed
Formatting
1 parent 11c6cf0 commit 287d55b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/index.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,13 @@ function transformGlimmer(ast, { env }) {
250250
return
251251
}
252252

253-
let siblings = parent?.type === 'ConcatStatement' ? {
254-
prev: parent.parts[index - 1],
255-
next: parent.parts[index + 1],
256-
} : null
253+
let siblings =
254+
parent?.type === 'ConcatStatement'
255+
? {
256+
prev: parent.parts[index - 1],
257+
next: parent.parts[index + 1],
258+
}
259+
: null
257260

258261
node.chars = sortClasses(node.chars, {
259262
env,
@@ -498,11 +501,11 @@ function visit(ast, callbackMap) {
498501
if (Array.isArray(child)) {
499502
for (let j = 0; j < child.length; j++) {
500503
if (child[j] !== null) {
501-
_visit(child[j], node, keys[i], j, {...meta})
504+
_visit(child[j], node, keys[i], j, { ...meta })
502505
}
503506
}
504507
} else if (typeof child?.type === 'string') {
505-
_visit(child, node, keys[i], i, {...meta})
508+
_visit(child, node, keys[i], i, { ...meta })
506509
}
507510
}
508511
}

0 commit comments

Comments
 (0)