style: run prettier
This commit is contained in:
parent
d0b4fb5d66
commit
4f33058b63
|
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue