mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:40:44 +00:00
refactor: remove stale migration helpers
This commit is contained in:
@@ -80,17 +80,6 @@ export function childRecord(
|
||||
return isRecord(value) ? value : {};
|
||||
}
|
||||
|
||||
export function readString(value: unknown): string | undefined {
|
||||
return typeof value === "string" && value.trim() ? value.trim() : undefined;
|
||||
}
|
||||
|
||||
export function readStringArray(value: unknown): string[] {
|
||||
if (!Array.isArray(value)) {
|
||||
return [];
|
||||
}
|
||||
return value.filter((entry): entry is string => typeof entry === "string" && entry.trim() !== "");
|
||||
}
|
||||
|
||||
export async function appendItem(item: MigrationItem): Promise<MigrationItem> {
|
||||
if (!item.source || !item.target) {
|
||||
return markMigrationItemError(item, MIGRATION_REASON_MISSING_SOURCE_OR_TARGET);
|
||||
|
||||
Reference in New Issue
Block a user