refactor: simplify typed conversions

This commit is contained in:
Peter Steinberger
2026-04-11 01:01:25 +01:00
parent 7c02b6df84
commit ebfd468ee0
24 changed files with 42 additions and 37 deletions

View File

@@ -107,7 +107,7 @@ function isProviderConfigured(cfg: OpenClawConfig, providerId: string): boolean
if (!isRecord(profile)) {
continue;
}
const provider = normalizeProviderId(String(profile.provider ?? ""));
const provider = normalizeProviderId(profile.provider ?? "");
if (provider === normalized) {
return true;
}