From edd82e70778a18ed65eba35fd37b4870696fa894 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Fri, 15 Mar 2024 20:39:43 -0400 Subject: [PATCH] ci(sync-maintainers): fix accidental .catch() (#679) --- scripts/sync-maintainers/main.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/sync-maintainers/main.ts b/scripts/sync-maintainers/main.ts index a8317991..e423dde0 100755 --- a/scripts/sync-maintainers/main.ts +++ b/scripts/sync-maintainers/main.ts @@ -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) => {