ci(sync-maintainers): fix accidental .catch() (#679)

This commit is contained in:
uncenter authored and GitHub committed 2024-03-15 20:39:43 -04:00
1 parent 71cb790206
commit edd82e7077
1 file changed
+2 -5
+2 -5
View File
@@ -8,15 +8,12 @@ import { getUserstylesData } from "@/utils.ts";
const octokit = new Octokit({ auth: Deno.env.get("GITHUB_TOKEN") });
const team = { org: "catppuccin", team_slug: "userstyles-maintainers" };
const userstylesData = await getUserstylesData().catch((err) => {
console.error(err);
Deno.exit(1);
});
const { userstyles } = getUserstylesData();
// Lowercase usernames of all the "current-maintainers" in the file.
const maintainers = [
...new Set(
Object.values(userstylesData.userstyles).flatMap((
Object.values(userstyles).flatMap((
style: UserStylesSchema.Userstyle,
) =>
style.readme["current-maintainers"].map((m) => {