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:
parent
cddebde1f2
commit
efff57bfc9
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue