mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:10:43 +00:00
fix(plugins): satisfy external catalog lint
This commit is contained in:
@@ -82,7 +82,7 @@ export function getOfficialExternalPluginCatalogManifest(
|
||||
entry: OfficialExternalPluginCatalogEntry,
|
||||
): OfficialExternalPluginCatalogManifest | undefined {
|
||||
const manifest = entry[MANIFEST_KEY];
|
||||
return isRecord(manifest) ? (manifest as OfficialExternalPluginCatalogManifest) : undefined;
|
||||
return isRecord(manifest) ? manifest : undefined;
|
||||
}
|
||||
|
||||
export function resolveOfficialExternalPluginId(
|
||||
@@ -140,7 +140,7 @@ export function listOfficialExternalPluginCatalogEntries(): OfficialExternalPlug
|
||||
const resolved = new Map<string, OfficialExternalPluginCatalogEntry>();
|
||||
for (const entry of entries) {
|
||||
const pluginId = resolveOfficialExternalPluginId(entry);
|
||||
const key = pluginId ? `${entry.kind ?? "plugin"}:${pluginId}` : `${entry.name ?? ""}`;
|
||||
const key = pluginId ? `${entry.kind ?? "plugin"}:${pluginId}` : (entry.name ?? "");
|
||||
if (key && !resolved.has(key)) {
|
||||
resolved.set(key, entry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user