From 1d37ab4f9fcacd42c94c0f5e24bd7326125e74b0 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Thu, 19 Jan 2023 16:27:24 +0000 Subject: [PATCH] [ci] format --- packages/astro-rss/src/index.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/astro-rss/src/index.ts b/packages/astro-rss/src/index.ts index 8157df30b..478d5dc39 100644 --- a/packages/astro-rss/src/index.ts +++ b/packages/astro-rss/src/index.ts @@ -1,8 +1,8 @@ import { z } from 'astro/zod'; import { XMLBuilder, XMLParser } from 'fast-xml-parser'; +import { yellow } from 'kleur/colors'; import { rssSchema } from './schema.js'; import { createCanonicalURL, errorMap, isValidURL } from './util.js'; -import { yellow } from 'kleur/colors'; export { rssSchema }; @@ -57,10 +57,7 @@ const globResultValidator = z.record(z.function().returns(z.promise(z.any()))); const rssOptionsValidator = z.object({ title: z.string(), description: z.string(), - site: z.preprocess( - url => url instanceof URL ? url.href : url, - z.string().url(), - ), + site: z.preprocess((url) => (url instanceof URL ? url.href : url), z.string().url()), items: z .array(rssFeedItemValidator) .or(globResultValidator)