Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/subscriptionInit.js

Issue 29371763: Issue 4795 - Use modern JavaScript syntax (Closed)
Patch Set: Addressed some more feedback Created Jan. 18, 2017, 11:44 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/stats.js ('k') | lib/tldjs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/subscriptionInit.js
diff --git a/lib/subscriptionInit.js b/lib/subscriptionInit.js
index 211fcb343adc88a79220ca2616899bc400c40357..1c530da32d57cd9e7bbfaf0e1269ea7ee29a9a53 100644
--- a/lib/subscriptionInit.js
+++ b/lib/subscriptionInit.js
@@ -19,14 +19,14 @@
"use strict";
-let {Subscription, DownloadableSubscription,
- SpecialSubscription} = require("subscriptionClasses");
-let {FilterStorage} = require("filterStorage");
-let {FilterNotifier} = require("filterNotifier");
-let {Prefs} = require("prefs");
-let {Synchronizer} = require("synchronizer");
-let {Utils} = require("utils");
-let {initNotifications} = require("notificationHelper");
+const {Subscription, DownloadableSubscription,
+ SpecialSubscription} = require("subscriptionClasses");
+const {FilterStorage} = require("filterStorage");
+const {FilterNotifier} = require("filterNotifier");
+const {Prefs} = require("prefs");
+const {Synchronizer} = require("synchronizer");
+const {Utils} = require("utils");
+const {initNotifications} = require("notificationHelper");
let firstRun;
let subscriptionsCallback = null;
@@ -180,7 +180,7 @@ exports.reinitialized = false;
*
* @param {function}
*/
-exports.setSubscriptionsCallback = function(callback)
+exports.setSubscriptionsCallback = callback =>
{
subscriptionsCallback = callback;
};
« no previous file with comments | « lib/stats.js ('k') | lib/tldjs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld