refactor: remove stale migration helpers · openclaw/openclaw@d61c919
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
File tree
extensions/migrate-claude
| Original file line number | Diff line number | Diff line change |
|---|
@@ -80,17 +80,6 @@ export function childRecord(
|
80 | 80 | return isRecord(value) ? value : {}; |
81 | 81 | } |
82 | 82 | |
83 | | -export function readString(value: unknown): string | undefined { |
84 | | -return typeof value === "string" && value.trim() ? value.trim() : undefined; |
85 | | -} |
86 | | - |
87 | | -export function readStringArray(value: unknown): string[] { |
88 | | -if (!Array.isArray(value)) { |
89 | | -return []; |
90 | | -} |
91 | | -return value.filter((entry): entry is string => typeof entry === "string" && entry.trim() !== ""); |
92 | | -} |
93 | | - |
94 | 83 | export async function appendItem(item: MigrationItem): Promise<MigrationItem> { |
95 | 84 | if (!item.source || !item.target) { |
96 | 85 | return markMigrationItemError(item, MIGRATION_REASON_MISSING_SOURCE_OR_TARGET); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。