mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-28 22:14: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();
|
const issuesForPage = await response.json();
|
||||||
issues = issues.concat(issuesForPage);
|
issues = issues.concat(issuesForPage);
|
||||||
const linkHeader = response.headers.get("link");
|
const linkHeader = response.headers.get("link");
|
||||||
pageLink = getNextLink(linkHeader);
|
pageLink = !!linkHeader ? getNextLink(linkHeader) : null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue