From 8e1ecc36b4d0c4eba69da2dec8b7fde37893f30d Mon Sep 17 00:00:00 2001 From: ukimsanov Date: Thu, 11 Jun 2026 16:35:11 -0700 Subject: [PATCH] fix(capture): drop unused err param in SVG rasterize catch block MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit oxlint flagged `catch (err)` after the SVG→PNG sharp fix. The catch intentionally swallows (sharp can fail on exotic SVG features and the contact sheet remains the authoritative fallback). Switch to bare `catch {}` since the error object isn't referenced. Follow-up to 5f290345. --- packages/cli/src/capture/contentExtractor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/capture/contentExtractor.ts b/packages/cli/src/capture/contentExtractor.ts index 94c6c5238a..dfd0cee48d 100644 --- a/packages/cli/src/capture/contentExtractor.ts +++ b/packages/cli/src/capture/contentExtractor.ts @@ -280,7 +280,7 @@ export async function captionImagesWithGemini( .png() .toBuffer(); pngBase64 = pngBuffer.toString("base64"); - } catch (err) { + } catch { // SVG rasterization can fail on exotic features (external fonts, // foreignObject, filters with missing primitives). Skip caption // rather than block — agent will fall back to contact-sheet view.