0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

[ci] format

This commit is contained in:
Mark Gaze 2024-06-14 10:39:09 +00:00 committed by astrobot-houston
parent de60c69aa0
commit 537e971372

View file

@ -452,10 +452,7 @@ async function writeContentFiles({
dataTypesStr += `};\n`;
}
if (
settings.config.experimental.contentCollectionJsonSchema &&
collectionConfig?.schema
) {
if (settings.config.experimental.contentCollectionJsonSchema && collectionConfig?.schema) {
let zodSchemaForJson =
typeof collectionConfig.schema === 'function'
? collectionConfig.schema({ image: () => z.string() })
@ -481,7 +478,7 @@ async function writeContentFiles({
} catch (err) {
logger.warn(
'content',
`An error was encountered while creating the JSON schema for the ${collectionKey} collection. Proceeding without it. Error: ${err}`
`An error was encountered while creating the JSON schema for the ${collectionKey} collection. Proceeding without it. Error: ${err}`
);
}
}