From fa96a01fc6f7f8757f0143c75e34f366fe73073e Mon Sep 17 00:00:00 2001 From: matthewp Date: Wed, 14 Dec 2022 13:42:13 +0000 Subject: [PATCH] [ci] format --- packages/astro-rss/src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/astro-rss/src/index.ts b/packages/astro-rss/src/index.ts index 3bac3feb27..a138bebde9 100644 --- a/packages/astro-rss/src/index.ts +++ b/packages/astro-rss/src/index.ts @@ -105,7 +105,10 @@ export async function generateRSS({ rssOptions, items }: GenerateRSSArgs): Promi const root: any = { '?xml': { '@_version': '1.0', '@_encoding': 'UTF-8' } }; if (typeof rssOptions.stylesheet === 'string') { const isXSL = /\.xsl$/i.test(rssOptions.stylesheet); - root['?xml-stylesheet'] = { '@_href': rssOptions.stylesheet, ...(isXSL && { '@_type': 'text/xsl' }) }; + root['?xml-stylesheet'] = { + '@_href': rssOptions.stylesheet, + ...(isXSL && { '@_type': 'text/xsl' }), + }; } root.rss = { '@_version': '2.0' }; if (items.find((result) => result.content)) {