Ensure iframely fallback is not executed for connected unfurl integration (#8995)

* Ensure iframely fallback is not executed for connected unfurl integration

* tsc
This commit is contained in:
Hemachandar authored and GitHub committed 2025-04-16 18:22:51 -04:00
1 parent 03a0f54236
commit 5789d65bf5
5 files changed
+16 -11

No files matched your search

+2 -2
View File
@@ -206,12 +206,12 @@ export class GitHub {
);
const { data } = await client.requestResource(resource);
if (!data) {
return;
return { error: "Resource not found" };
}
return { ...data, type: resource.type };
} catch (err) {
Logger.warn("Failed to fetch resource from GitHub", err);
return;
return { error: err.message || "Unknown error" };
}
};
}