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

Unified Diff: lib/tldjs.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
Index: lib/tldjs.js
diff --git a/lib/tldjs.js b/lib/tldjs.js
index c354375b2fb223fc83c4472f642d4802a2b3d1b5..a56a1f412283822bc58f0e67695465432966954f 100644
--- a/lib/tldjs.js
+++ b/lib/tldjs.js
@@ -24,7 +24,7 @@ let getDomain =
* @param {string} hostname
* @return {string}
*/
-exports.getDomain = function(hostname)
+exports.getDomain = hostname =>
{
let bits = hostname.split(".");
let cutoff = bits.length - 2;
« chrome/ext/common.js ('K') | « lib/subscriptionInit.js ('k') | lib/url.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld