Index: lib/synchronizer.js |
=================================================================== |
--- a/lib/synchronizer.js |
+++ b/lib/synchronizer.js |
@@ -93,17 +93,17 @@ let Synchronizer = exports.Synchronizer |
/** |
* Yields Downloadable instances for all subscriptions that can be downloaded. |
*/ |
_getDownloadables: function() |
{ |
if (!Prefs.subscriptions_autoupdate) |
return; |
- for each (let subscription in FilterStorage.subscriptions) |
+ for (let subscription of FilterStorage.subscriptions) |
{ |
if (subscription instanceof DownloadableSubscription) |
yield this._getDownloadable(subscription, false); |
} |
}, |
/** |
* Creates a Downloadable instance for a subscription. |
@@ -250,17 +250,17 @@ let Synchronizer = exports.Synchronizer |
subscription.requiredVersion = minVersion; |
if (Services.vc.compare(minVersion, addonVersion) > 0) |
subscription.upgradeRequired = true; |
} |
// Process filters |
lines.shift(); |
let filters = []; |
- for each (let line in lines) |
+ for (let line of lines) |
{ |
line = Filter.normalize(line); |
if (line) |
filters.push(Filter.fromText(line)); |
} |
FilterStorage.updateSubscriptionFilters(subscription, filters); |