Teensy weensy cleanup

This commit is contained in:
Schuyler Cebulskie
2016-12-24 19:54:37 -05:00
parent ab30715028
commit 74c3bae506
2 changed files with 2 additions and 6 deletions

View File

@@ -41,9 +41,7 @@ class BurstRequestHandler extends RequestHandler {
this.globalLimit = false;
this.handle();
}, Number(res.headers['retry-after']) + this.restManager.client.options.restTimeOffset);
if (res.headers['x-ratelimit-global']) {
this.globalLimit = true;
}
if (res.headers['x-ratelimit-global']) this.globalLimit = true;
} else {
item.reject(err);
}