fix(plugins): satisfy external catalog lint

This commit is contained in:
Vincent Koc
2026-05-02 13:37:10 -07:00
parent a53be2d2ce
commit 94521a1cdd

View File

@@ -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);
}