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

Unified Diff: qunit/tests/versionComparator.js

Issue 29581937: Noissue - Use anonymous blocks instead of anonymous functions (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created Oct. 18, 2017, 2:10 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 | « qunit/tests/url.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: qunit/tests/versionComparator.js
===================================================================
--- a/qunit/tests/versionComparator.js
+++ b/qunit/tests/versionComparator.js
@@ -14,17 +14,16 @@
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
/* globals Cu */
"use strict";
-(function()
{
const {Services} = Cu.import("resource://gre/modules/Services.jsm", {});
const {compare} = Services.vc;
function allPairs(array)
{
let pairs = [];
for (let i = 0; i < array.length - 1; i++)
@@ -108,9 +107,9 @@
let v2 = [].concat(pair[1]);
for (let i = 0; i < v1.length; i++)
{
for (let j = 0; j < v2.length; j++)
versionSmaller(v1[i], v2[j]);
}
});
});
-}());
+}
« no previous file with comments | « qunit/tests/url.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld