From 364183f9891a07ef71dbdd049bca7aa4f7fd00dd Mon Sep 17 00:00:00 2001 From: Steven Zimmerman Date: Fri, 2 May 2025 03:20:48 -0400 Subject: [PATCH] git commit -m "style: fix formatting issues in README, saas template and image utils Fix the failing CI "check" action by applying Prettier formatting to: - README.md - src/pages/homes/saas.astro - src/utils/images.ts This resolves the "prettier --check" errors without changing functionality." --- README.md | 1 - src/pages/homes/saas.astro | 5 ++--- src/utils/images.ts | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 32ed8ffe1d..d25b127b66 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,6 @@ We're embarking on an exciting journey with **AstroWind 2.0**, and we want you t
- ## TL;DR ```shell diff --git a/src/pages/homes/saas.astro b/src/pages/homes/saas.astro index 14ca2038f9..8291b461c6 100644 --- a/src/pages/homes/saas.astro +++ b/src/pages/homes/saas.astro @@ -51,9 +51,8 @@ const metadata = { }} > - Simplify web design with Astrowind:
your ultimate SaaS companion
+ Simplify web design with Astrowind:
your ultimate SaaS companion
diff --git a/src/utils/images.ts b/src/utils/images.ts index d6f14f0573..a33584e574 100644 --- a/src/utils/images.ts +++ b/src/utils/images.ts @@ -84,9 +84,7 @@ export const adaptOpenGraphImages = async ( typeof resolvedImage !== 'string' && resolvedImage?.width <= defaultWidth ? [resolvedImage?.width, resolvedImage?.height] : [defaultWidth, defaultHeight]; - _image = ( - await astroAssetsOptimizer(resolvedImage, [dimensions[0]], dimensions[0], dimensions[1], 'jpg') - )[0]; + _image = (await astroAssetsOptimizer(resolvedImage, [dimensions[0]], dimensions[0], dimensions[1], 'jpg'))[0]; } if (typeof _image === 'object') {