mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 13:34:13 +01:00
Clean up some old-style iterator gunk.
This commit is contained in:
@@ -267,7 +267,7 @@ var Cache = Module("Cache", XPCOM(Ci.nsIRequestObserver), {
|
||||
if (this.queue.length && !this.inQueue) {
|
||||
// removeEntry does not work properly with queues.
|
||||
let removed = 0;
|
||||
for (let [, entry] of this.queue)
|
||||
for (let entry of this.queue)
|
||||
if (this.getCacheWriter().hasEntry(entry)) {
|
||||
this.getCacheWriter().removeEntry(entry, false);
|
||||
removed++;
|
||||
|
||||
Reference in New Issue
Block a user