refactor: simplify link following behavior - treat relative paths as local files, all HTTP/HTTPS as external

jts-multifile-plugins-guide
Jason Stirnaman 2025-10-31 15:05:17 -05:00
parent 9373446ea6
commit 240544c2b3
1 changed files with 3 additions and 3 deletions

View File

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