Skip to content

Commit edd82e7

Browse files
authored
ci(sync-maintainers): fix accidental .catch() (catppuccin#679)
1 parent 71cb790 commit edd82e7

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

scripts/sync-maintainers/main.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,12 @@ import { getUserstylesData } from "@/utils.ts";
88
const octokit = new Octokit({ auth: Deno.env.get("GITHUB_TOKEN") });
99
const team = { org: "catppuccin", team_slug: "userstyles-maintainers" };
1010

11-
const userstylesData = await getUserstylesData().catch((err) => {
12-
console.error(err);
13-
Deno.exit(1);
14-
});
11+
const { userstyles } = getUserstylesData();
1512

1613
// Lowercase usernames of all the "current-maintainers" in the file.
1714
const maintainers = [
1815
...new Set(
19-
Object.values(userstylesData.userstyles).flatMap((
16+
Object.values(userstyles).flatMap((
2017
style: UserStylesSchema.Userstyle,
2118
) =>
2219
style.readme["current-maintainers"].map((m) => {

0 commit comments

Comments
 (0)