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

[ci] format

This commit is contained in:
Matthew Phillips 2023-12-13 14:25:55 +00:00 committed by astrobot-houston
parent bda1d294f2
commit f8b27b07c0

View file

@ -79,10 +79,14 @@ export async function getImage(
message: AstroErrorData.ExpectedImageOptions.message(JSON.stringify(options)),
});
}
if(typeof options.src === 'undefined') {
if (typeof options.src === 'undefined') {
throw new AstroError({
...AstroErrorData.ExpectedImage,
message: AstroErrorData.ExpectedImage.message(options.src, 'undefined', JSON.stringify(options))
message: AstroErrorData.ExpectedImage.message(
options.src,
'undefined',
JSON.stringify(options)
),
});
}