From 240544c2b32ebff91e0609124c3d56c3bc2703c8 Mon Sep 17 00:00:00 2001 From: Jason Stirnaman Date: Fri, 31 Oct 2025 15:05:17 -0500 Subject: [PATCH] refactor: simplify link following behavior - treat relative paths as local files, all HTTP/HTTPS as external --- scripts/lib/content-scaffolding.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/lib/content-scaffolding.js b/scripts/lib/content-scaffolding.js index b775a304e..5f6a6fdcc 100644 --- a/scripts/lib/content-scaffolding.js +++ b/scripts/lib/content-scaffolding.js @@ -623,7 +623,7 @@ export function detectSharedContent(filePath) { if (parsed.data && parsed.data.source) { return parsed.data.source; } - } catch (error) { + } catch (_error) { // Can't parse, assume not shared return null; } @@ -670,13 +670,13 @@ export function findSharedContentVariants(sourcePath) { const relativePath = fullPath.replace(REPO_ROOT + '/', ''); variants.push(relativePath); } - } catch (error) { + } catch (_error) { // Skip files that can't be parsed continue; } } } - } catch (error) { + } catch (_error) { // Skip directories we can't read } }