From d4fd4c234d85857d6d9936789b9fe0a69952efa2 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 30 Nov 2022 16:40:54 -0700 Subject: [PATCH] Add some safety to the proposals script for if github's api explodes, forgets the header, or we are rate limited or something. --- scripts/proposals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/proposals.js b/scripts/proposals.js index 42300b98..dc3f2895 100644 --- a/scripts/proposals.js +++ b/scripts/proposals.js @@ -100,7 +100,7 @@ async function getIssues() { const issuesForPage = await response.json(); issues = issues.concat(issuesForPage); const linkHeader = response.headers.get("link"); - pageLink = getNextLink(linkHeader); + pageLink = !!linkHeader ? getNextLink(linkHeader) : null; } }