style: run prettier

This commit is contained in:
Nicola Zambello 2022-07-07 09:50:09 +02:00
parent d0b4fb5d66
commit 4f33058b63
Signed by: nzambello
GPG key ID: 56E4A92C2C1E50BA

View file

@ -93,7 +93,7 @@ const getLinkPreview = async (url: string, options?: ILinkPreviewerOptions) => {
: ('error' as 'error'), : ('error' as 'error'),
}; };
const response = await fetch(fetchUrl, fetchOptions).catch((e) => { const response = await fetch(fetchUrl, fetchOptions).catch(e => {
if (e.name === 'AbortError') { if (e.name === 'AbortError') {
throw new Error('Request timeout'); throw new Error('Request timeout');
} }