Use GitHub token rotation in production :P (#1266)

This commit is contained in:
Paul Melnikow
2017-11-10 13:51:39 -05:00
committed by GitHub
parent 9e864f1660
commit 8733a8b8f2

View File

@@ -243,7 +243,7 @@ function githubRequest(request, url, query, cb) {
'Accept': 'application/vnd.github.v3+json',
};
const githubToken = globalToken === null ? getReqRemainingToken() : globalToken;
const githubToken = globalToken === undefined ? getReqRemainingToken() : globalToken;
if (githubToken != null) {
// Typically, GitHub user tokens grants us 12500 req/hour.