Add some safety to the proposals script

for if github's api explodes, forgets the header, or we are rate limited or something.
This commit is contained in:
Travis Ralston 2022-11-30 16:40:54 -07:00
parent 5d40118116
commit d4fd4c234d

View file

@ -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;
}
}