0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
Josh Goldberg ✨ 2024-08-08 09:54:55 +00:00 committed by astrobot-houston
parent 4c1b769bcf
commit 85de47cd98
4 changed files with 4 additions and 6 deletions

View file

@ -179,9 +179,7 @@ async function renderFrameworkComponent(
// Attempt: can we guess the renderer from the export extension? // Attempt: can we guess the renderer from the export extension?
if (!renderer) { if (!renderer) {
const extname = metadata.componentUrl?.split('.').pop(); const extname = metadata.componentUrl?.split('.').pop();
renderer = renderers.find( renderer = renderers.find(({ name }) => name === `@astrojs/${extname}` || name === extname);
({ name }) => name === `@astrojs/${extname}` || name === extname
);
} }
} }