Remove references to `promsises` in RequestGuard.

This seems to be dead code, as `promises` is only ever instantiated as an empty list and then consumed. Nothing is ever added to it.
This commit is contained in:
Josh McSavaney 2021-05-04 17:28:37 -04:00 committed by GitHub
parent cddebde1f2
commit efff57bfc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -491,7 +491,6 @@ var RequestGuard = (() => {
normalizeRequest(request);
let result = ALLOW;
let promises = [];
let headersModified = false;
pending.headersProcessed = true;
@ -534,11 +533,6 @@ var RequestGuard = (() => {
error(e, "Error in onHeadersReceived", request);
}
promises = promises.filter(p => p instanceof Promise);
if (promises.length > 0) {
return Promise.all(promises).then(() => result);
}
return result;
},
onResponseStarted(request) {