Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored and astrobot-houston committed Jun 14, 2024
1 parent de60c69 commit 537e971
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/astro/src/content/types-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() })
Expand All @@ -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}`
);
}
}
Expand Down

0 comments on commit 537e971

Please sign in to comment.