Skip to content

Commit 15885a5

Browse files
committed
Fix lint
1 parent c0ee01f commit 15885a5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/parse/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function convertAst(ast: Node, rawTemplates: RawGlimmerTemplate[]): void {
5858
},
5959
});
6060

61-
if (unprocessedTemplates.length) {
61+
if (unprocessedTemplates.length > 0) {
6262
throw new Error(
6363
`failed to process all templates, ${unprocessedTemplates.length} remaining`,
6464
);

src/print/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ export const printer: Printer<Node | undefined> = {
109109
);
110110

111111
return printTemplateTag(content);
112-
} catch (e) {
113-
console.error(e);
112+
} catch (error) {
113+
console.error(error);
114114
return printRawText(path, embedOptions as Options);
115115
}
116116
}

0 commit comments

Comments
 (0)