mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-30 14:30:27 +00:00
refactor: dedupe doctor compat record helper
This commit is contained in:
@@ -3,7 +3,7 @@ type CompatMutationResult = {
|
||||
changed: boolean;
|
||||
};
|
||||
|
||||
function asObjectRecord(value: unknown): Record<string, unknown> | null {
|
||||
export function asObjectRecord(value: unknown): Record<string, unknown> | null {
|
||||
return value && typeof value === "object" && !Array.isArray(value)
|
||||
? (value as Record<string, unknown>)
|
||||
: null;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
export { collectProviderDangerousNameMatchingScopes } from "../config/dangerous-name-matching.js";
|
||||
export {
|
||||
asObjectRecord,
|
||||
hasLegacyAccountStreamingAliases,
|
||||
hasLegacyStreamingAliases,
|
||||
normalizeLegacyDmAliases,
|
||||
|
||||
Reference in New Issue
Block a user