refactor: hide gateway wake internals · openclaw/openclaw@314a197
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -71,9 +71,9 @@ vi.mock("./plugin-registry.js", async (importOriginal) => {
|
71 | 71 | ...actual, |
72 | 72 | loadPluginRegistrySnapshot: mocks.loadPluginRegistrySnapshot, |
73 | 73 | loadPluginRegistrySnapshotWithMetadata: (params?: { index?: unknown }) => { |
74 | | -const snapshot = |
75 | | -params?.index ?? |
76 | | - (mocks.loadPluginRegistrySnapshot() as { plugins?: Array<Record<string, unknown>> }); |
| 74 | +const snapshot = (params?.index ?? mocks.loadPluginRegistrySnapshot()) as { |
| 75 | +plugins?: Array<Record<string, unknown>>; |
| 76 | +}; |
77 | 77 | return { |
78 | 78 | snapshot: { |
79 | 79 | ...snapshot, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。