chore(deadcode): remove stale migrate argv wrapper · openclaw/openclaw@f8d2c4b
vincentkoc
·
2026-06-21
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -17,7 +17,6 @@ import {
|
17 | 17 | normalizeRootHelpTargetArgv, |
18 | 18 | normalizeRootLogLevelArgv, |
19 | 19 | normalizeRootNoColorArgv, |
20 | | -shouldMigrateState, |
21 | 20 | shouldMigrateStateFromPath, |
22 | 21 | } from "./argv.js"; |
23 | 22 | |
@@ -740,7 +739,8 @@ describe("argv helpers", () => {
|
740 | 739 | { argv: ["node", "openclaw", "agents", "list"], expected: true }, |
741 | 740 | { argv: ["node", "openclaw", "message", "send"], expected: true }, |
742 | 741 | ] as const)("decides when to migrate state: $argv", ({ argv, expected }) => { |
743 | | -expect(shouldMigrateState([...argv])).toBe(expected); |
| 742 | +const commandPath = getCommandPathWithRootOptions([...argv], 2); |
| 743 | +expect(shouldMigrateStateFromPath(commandPath)).toBe(expected); |
744 | 744 | }); |
745 | 745 | |
746 | 746 | it.each([ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。