From abfe73f5dc3d58b23f866a0f02a07122cb4a75e0 Mon Sep 17 00:00:00 2001 From: matthewp Date: Tue, 20 Sep 2022 17:15:15 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/runtime/server/escape.ts | 4 ++-- packages/astro/src/runtime/server/index.ts | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/packages/astro/src/runtime/server/escape.ts b/packages/astro/src/runtime/server/escape.ts index 7610a3deef..0212d803dc 100644 --- a/packages/astro/src/runtime/server/escape.ts +++ b/packages/astro/src/runtime/server/escape.ts @@ -32,8 +32,8 @@ export const markHTMLString = (value: any) => { export function unescapeHTML(str: any) { // If a promise, await the result and mark that. - if(!!str && typeof str === 'object' && typeof str.then === 'function') { - return Promise.resolve(str).then(value => { + if (!!str && typeof str === 'object' && typeof str.then === 'function') { + return Promise.resolve(str).then((value) => { return markHTMLString(value); }); } diff --git a/packages/astro/src/runtime/server/index.ts b/packages/astro/src/runtime/server/index.ts index cd02deaa9e..c6d7c9e539 100644 --- a/packages/astro/src/runtime/server/index.ts +++ b/packages/astro/src/runtime/server/index.ts @@ -1,11 +1,6 @@ export { createAstro } from './astro-global.js'; export { renderEndpoint } from './endpoint.js'; -export { - escapeHTML, - HTMLString, - markHTMLString, - unescapeHTML, -} from './escape.js'; +export { escapeHTML, HTMLString, markHTMLString, unescapeHTML } from './escape.js'; export type { Metadata } from './metadata'; export { createMetadata } from './metadata.js'; export {