fix(lint): remove empty catch blocks causing pipeline failure

This commit is contained in:
2026-07-23 18:22:32 +02:00
parent 8c2e9bb11d
commit 7762b1e23b
4 changed files with 15 additions and 3 deletions

View File

@@ -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,

View File

@@ -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,

View File

@@ -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

File diff suppressed because one or more lines are too long