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

Unified Diff: lib/whitelisting.js

Issue 29371763: Issue 4795 - Use modern JavaScript syntax (Closed)
Patch Set: Created Jan. 13, 2017, 12:11 p.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
« chrome/ext/common.js ('K') | « lib/utils.js ('k') | notification.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/whitelisting.js
diff --git a/lib/whitelisting.js b/lib/whitelisting.js
index 3283952bf860f7db1d853941ef76643db4a8862c..93b737127c84d57f9f01abf3bf36146396028eb9 100644
--- a/lib/whitelisting.js
+++ b/lib/whitelisting.js
@@ -60,7 +60,7 @@ let checkWhitelisted =
* @param {number} [typeMask=RegExpFilter.typeMap.DOCUMENT]
* @return {?WhitelistFilter}
*/
-exports.checkWhitelisted = function(page, frame, typeMask)
+exports.checkWhitelisted = (page, frame, typeMask) =>
{
if (typeof typeMask == "undefined")
typeMask = RegExpFilter.typeMap.DOCUMENT;
@@ -118,7 +118,7 @@ let getKey =
* @param {Frame} frame
* @return {string}
*/
-exports.getKey = function(page, frame)
+exports.getKey = (page, frame) =>
{
let keys = sitekeys.get(page);
if (!keys)
« chrome/ext/common.js ('K') | « lib/utils.js ('k') | notification.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld