mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 13:04:10 +01:00
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:
parent
5d40118116
commit
d4fd4c234d
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue