1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-09 15:35:25 +02:00

Fixed braces in objects, added new lines

This commit is contained in:
slaveeks 2022-07-07 13:13:42 +03:00
parent 3bf407b74d
commit 30d475ed33

View file

@ -48,8 +48,10 @@ export async function downloadFavicon(destination: string, faviconFolder: string
// Check if string is url // Check if string is url
if (!checkIsUrl(destination)) { if (!checkIsUrl(destination)) {
return { destination: destination, return {
type: `image/${format}` } as FaviconData; destination: destination,
type: `image/${format}`,
} as FaviconData;
} }
// Create timeout to abort request // Create timeout to abort request
@ -76,6 +78,8 @@ export async function downloadFavicon(destination: string, faviconFolder: string
} }
}); });
return { destination: `/favicon/favicon.${format}`, return {
type: `image/${format}` } as FaviconData; destination: `/favicon/favicon.${format}`,
type: `image/${format}`,
} as FaviconData;
} }