refactor: hide import cycle graph helpers · openclaw/openclaw@4c36e9f
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,7 +11,7 @@ export function normalizeRepoPath(filePath: string, repoRoot: string): string {
|
11 | 11 | return path.relative(repoRoot, filePath).split(path.sep).join("/"); |
12 | 12 | } |
13 | 13 | |
14 | | -export function cycleSignature(files: readonly string[]): string { |
| 14 | +function cycleSignature(files: readonly string[]): string { |
15 | 15 | return files.toSorted((left, right) => left.localeCompare(right)).join("\n"); |
16 | 16 | } |
17 | 17 | |
@@ -90,7 +90,7 @@ export function collectStronglyConnectedComponents(
|
90 | 90 | ); |
91 | 91 | } |
92 | 92 | |
93 | | -export function findCycleWitness( |
| 93 | +function findCycleWitness( |
94 | 94 | component: readonly string[], |
95 | 95 | graph: ReadonlyMap<string, readonly string[]>, |
96 | 96 | ): string[] { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。