mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 03:00:21 +00:00
refactor: simplify typed conversions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user