mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
[ci] format
This commit is contained in:
parent
dee7d62962
commit
7d0c3f9ecb
1 changed files with 7 additions and 7 deletions
|
@ -117,14 +117,14 @@ const createPlugin = (options?: SitemapOptions): AstroIntegration => {
|
||||||
const serializedUrls: SitemapItem[] = [];
|
const serializedUrls: SitemapItem[] = [];
|
||||||
for (const item of urlData) {
|
for (const item of urlData) {
|
||||||
const serialized = await Promise.resolve(serialize(item));
|
const serialized = await Promise.resolve(serialize(item));
|
||||||
if (serialized) {
|
if (serialized) {
|
||||||
serializedUrls.push(serialized);
|
serializedUrls.push(serialized);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (serializedUrls.length === 0) {
|
||||||
|
logger.warn('No pages found!');
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (serializedUrls.length === 0) {
|
|
||||||
logger.warn('No pages found!');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
urlData = serializedUrls;
|
urlData = serializedUrls;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error(`Error serializing pages\n${(err as any).toString()}`);
|
logger.error(`Error serializing pages\n${(err as any).toString()}`);
|
||||||
|
|
Loading…
Add table
Reference in a new issue