fix(lint): remove empty catch blocks causing pipeline failure
This commit is contained in:
@@ -61,7 +61,9 @@ const mdxComponents = {
|
||||
try {
|
||||
const urlParam = new URLSearchParams(src.split('?')[1]).get('url');
|
||||
if (urlParam) src = decodeURIComponent(urlParam);
|
||||
} catch (e) {}
|
||||
} catch (_e) {
|
||||
// Ignore invalid URL parsing
|
||||
}
|
||||
}
|
||||
const { props: { srcSet, src: finalSrc, sizes } } = getImageProps({
|
||||
src,
|
||||
|
||||
@@ -31,7 +31,9 @@ const mdxComponents = {
|
||||
try {
|
||||
const urlParam = new URLSearchParams(src.split('?')[1]).get('url');
|
||||
if (urlParam) src = decodeURIComponent(urlParam);
|
||||
} catch (e) {}
|
||||
} catch (_e) {
|
||||
// Ignore invalid URL parsing
|
||||
}
|
||||
}
|
||||
const { props: { srcSet, src: finalSrc, sizes } } = getImageProps({
|
||||
src,
|
||||
|
||||
@@ -47,7 +47,9 @@ const mdxComponents = {
|
||||
try {
|
||||
const urlParam = new URLSearchParams(src.split('?')[1]).get('url');
|
||||
if (urlParam) src = decodeURIComponent(urlParam);
|
||||
} catch (e) {}
|
||||
} catch (_e) {
|
||||
// Ignore invalid URL parsing
|
||||
}
|
||||
}
|
||||
const { props: { srcSet, src: finalSrc, sizes } } = getImageProps({
|
||||
src,
|
||||
|
||||
6
lint-results.json
Normal file
6
lint-results.json
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user