Skip to content

Commit f0b8e0e

Browse files
committed
re-add assertion for Glimmer Doc
1 parent 798c364 commit f0b8e0e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/print/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ export const printer: Printer<Node | undefined> = {
4646
} else {
4747
let printed = estreePrinter.print(path, options, print, args);
4848

49-
if (!Array.isArray(printed)) {
50-
printed = [printed];
51-
}
52-
49+
assert('Expected Glimmer doc to be an array', Array.isArray(printed));
5350
trimPrinted(printed);
5451

5552
// Remove semicolons so we can manage them ourselves
@@ -113,6 +110,7 @@ export const printer: Printer<Node | undefined> = {
113110

114111
const printed = printTemplateTag(content);
115112
saveCurrentPrintOnSiblingNode(path, printed);
113+
console.log(printed);
116114
return printed;
117115
} catch (error) {
118116
console.error(error);

0 commit comments

Comments
 (0)