chore(producer): keep the link read-through comment within the line limit (#8146)

This commit is contained in:
Miguel Ángel
2026-11-18 08:31:46 +00:00
committed by GitHub
parent 7ea0129530
commit eb7dc14e89
@@ -60,7 +60,7 @@ function rootOf(path: string, where: Where): MissingPathFacts["root"] {
return "other";
}
/** A dangling link on the way, read through to its target only when that target is in the temp root or the cache folder. */
/** A dangling link on the way: read through only when its target is in the temp root or cache folder. */
function goneThroughLink(link: string, where: Where, hops: number): MissingPathFacts["scope"] {
const target = resolve(dirname(link), readlinkSync(link).replace(/^\\\\\?\\/, ""));
return rootOf(target, where) !== "other" && hops < MAX_LINK_HOPS