From 260d03b1b650282c8cc08400d22cfe6ba42a7604 Mon Sep 17 00:00:00 2001 From: matthewp Date: Tue, 3 Aug 2021 17:35:43 +0000 Subject: [PATCH] [ci] yarn format --- packages/astro/src/compiler/transform/head.ts | 2 +- packages/astro/src/compiler/transform/util/end-of-head.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/astro/src/compiler/transform/head.ts b/packages/astro/src/compiler/transform/head.ts index 56a0006c7..f277b56f1 100644 --- a/packages/astro/src/compiler/transform/head.ts +++ b/packages/astro/src/compiler/transform/head.ts @@ -162,7 +162,7 @@ export default function (opts: TransformOptions): Transformer { ); } - if(eoh.foundHeadOrHtmlElement || eoh.foundHeadAndBodyContent) { + if (eoh.foundHeadOrHtmlElement || eoh.foundHeadAndBodyContent) { const topLevelFragment = { start: 0, end: 0, diff --git a/packages/astro/src/compiler/transform/util/end-of-head.ts b/packages/astro/src/compiler/transform/util/end-of-head.ts index 81f7faf80..ddc4b5136 100644 --- a/packages/astro/src/compiler/transform/util/end-of-head.ts +++ b/packages/astro/src/compiler/transform/util/end-of-head.ts @@ -35,7 +35,7 @@ export class EndOfHead { if (this.found) { if (!validHeadElements.has(name)) { - if(node.type === 'Element') { + if (node.type === 'Element') { this.foundBodyElements = true; } } @@ -57,15 +57,15 @@ export class EndOfHead { } // Skip !doctype and html elements - if(beforeHeadElements.has(name)) { - if(name === 'html') { + if (beforeHeadElements.has(name)) { + if (name === 'html') { this.html = node; } return; } if (!validHeadElements.has(name)) { - if(node.type === 'Element') { + if (node.type === 'Element') { this.foundBodyElements = true; } this.firstNonHead = node;