[ci] format

This commit is contained in:
natemoo-re 2023-02-16 21:34:56 +00:00 committed by fredkbot
parent dbffee4e38
commit f9fdf984f1

View file

@ -93,13 +93,13 @@ async function validateRssOptions(rssOptions: RSSOptions) {
return parsedResult.data;
}
const formattedError = new Error(
[
`[RSS] Invalid or missing options:`,
...parsedResult.error.errors.map(
zodError => `${zodError.message} (${zodError.path.join('.')})`
),
].join('\n')
)
[
`[RSS] Invalid or missing options:`,
...parsedResult.error.errors.map(
(zodError) => `${zodError.message} (${zodError.path.join('.')})`
),
].join('\n')
);
throw formattedError;
}