Skip to content

Commit

Permalink
The nightly property is now optional in browser-specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jyasskin committed Feb 8, 2024
1 parent d12d29c commit 5da8b03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scanner/browser-specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const WebSpecs = z.object({
standing: z.enum(["good", "pending", "discontinued"]),
nightly: z.object({
repository: z.string().url().optional(),
})
}).optional(),
}).array();

export type WebSpecs = z.infer<typeof WebSpecs>;
Expand Down
2 changes: 1 addition & 1 deletion scanner/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async function analyzeRepo(org: string, repoName: string, globalStats: GlobalSta
async function main() {
const repos = new Set<string>();
for (const spec of await browserSpecs()) {
const repo = spec.nightly.repository;
const repo = spec.nightly?.repository;
if (repo) {
repos.add(repo);
}
Expand Down

0 comments on commit 5da8b03

Please sign in to comment.